mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 11:45:21 +00:00
add verbose/quiet commands
This commit is contained in:
parent
84200dcde6
commit
dbc90576b8
@ -241,6 +241,8 @@ func generateInteractive(cmd *cobra.Command, model string) error {
|
|||||||
readline.PcItem("/set",
|
readline.PcItem("/set",
|
||||||
readline.PcItem("history"),
|
readline.PcItem("history"),
|
||||||
readline.PcItem("nohistory"),
|
readline.PcItem("nohistory"),
|
||||||
|
readline.PcItem("verbose"),
|
||||||
|
readline.PcItem("quiet"),
|
||||||
readline.PcItem("mode",
|
readline.PcItem("mode",
|
||||||
readline.PcItem("vim"),
|
readline.PcItem("vim"),
|
||||||
readline.PcItem("emacs"),
|
readline.PcItem("emacs"),
|
||||||
@ -299,6 +301,12 @@ func generateInteractive(cmd *cobra.Command, model string) error {
|
|||||||
case "nohistory":
|
case "nohistory":
|
||||||
scanner.HistoryDisable()
|
scanner.HistoryDisable()
|
||||||
continue
|
continue
|
||||||
|
case "verbose":
|
||||||
|
cmd.Flags().Set("verbose", "true")
|
||||||
|
continue
|
||||||
|
case "quiet":
|
||||||
|
cmd.Flags().Set("verbose", "false")
|
||||||
|
continue
|
||||||
case "mode":
|
case "mode":
|
||||||
if len(args) > 2 {
|
if len(args) > 2 {
|
||||||
switch args[2] {
|
switch args[2] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user