Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
dbc90576
Commit
dbc90576
authored
Jul 19, 2023
by
Michael Yang
Browse files
add verbose/quiet commands
parent
84200dcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
cmd/cmd.go
cmd/cmd.go
+8
-0
No files found.
cmd/cmd.go
View file @
dbc90576
...
@@ -241,6 +241,8 @@ func generateInteractive(cmd *cobra.Command, model string) error {
...
@@ -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 {
...
@@ -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
]
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment