mirror of
https://github.com/ollama/ollama.git
synced 2025-03-29 11:11:47 +01:00
Merge pull request #3068 from dhiltgen/win_pipe
Use stdin for term discovery on windows
This commit is contained in:
commit
da20786e3e
@ -900,8 +900,7 @@ func NewCLI() *cobra.Command {
|
|||||||
cobra.EnableCommandSorting = false
|
cobra.EnableCommandSorting = false
|
||||||
|
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
// Enable colorful ANSI escape code in Windows terminal (disabled by default)
|
console.ConsoleFromFile(os.Stdin) //nolint:errcheck
|
||||||
console.ConsoleFromFile(os.Stdout) //nolint:errcheck
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rootCmd := &cobra.Command{
|
rootCmd := &cobra.Command{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user