Skip to content

Commit 2579aa5

Browse files
added silent flag to root (#140)
* added silent flag to root * bump version * codegen files * .
1 parent e7ecb73 commit 2579aa5

30 files changed

+33
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.0.129
1+
VERSION=v0.0.130
22

33
OUT_DIR=dist
44
YEAR?=$(shell date +"%Y")

cmd/commands/root.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424

2525
func NewRoot() *cobra.Command {
2626
s := store.Get()
27+
var silent bool
2728

2829
cmd := &cobra.Command{
2930
Use: s.BinaryName,
@@ -47,7 +48,8 @@ variables in advanced to simplify the use of those commands.
4748
}
4849

4950
cfConfig = config.AddFlags(cmd.PersistentFlags())
50-
51+
cmd.PersistentFlags().BoolVar(&silent, "silent", false, "Disables the command wizard")
52+
5153
cmd.AddCommand(NewVersionCommand())
5254
cmd.AddCommand(NewConfigCommand())
5355
cmd.AddCommand(NewRuntimeCommand())

docs/commands/cli-v2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ cli-v2 [flags]
2727
-h, --help help for cli-v2
2828
--insecure Disable certificate validation for TLS connections (e.g. to g.codefresh.io)
2929
--request-timeout duration Request timeout (default 30s)
30+
--silent Disables the command wizard
3031
```
3132

3233
### SEE ALSO

docs/commands/cli-v2_component.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ cli-v2 component [flags]
1919
--cfconfig string Custom path for authentication contexts config file (default "/home/user")
2020
--insecure Disable certificate validation for TLS connections (e.g. to g.codefresh.io)
2121
--request-timeout duration Request timeout (default 30s)
22+
--silent Disables the command wizard
2223
```
2324

2425
### SEE ALSO

docs/commands/cli-v2_component_list.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ cli-v2 component list [runtime_name] [flags]
2727
--cfconfig string Custom path for authentication contexts config file (default "/home/user")
2828
--insecure Disable certificate validation for TLS connections (e.g. to g.codefresh.io)
2929
--request-timeout duration Request timeout (default 30s)
30+
--silent Disables the command wizard
3031
```
3132

3233
### SEE ALSO

docs/commands/cli-v2_config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ cli-v2 config [flags]
3232
--cfconfig string Custom path for authentication contexts config file (default "/home/user")
3333
--insecure Disable certificate validation for TLS connections (e.g. to g.codefresh.io)
3434
--request-timeout duration Request timeout (default 30s)
35+
--silent Disables the command wizard
3536
```
3637

3738
### SEE ALSO

docs/commands/cli-v2_config_create-context.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ cli-v2 config create-context [flags]
3030
--cfconfig string Custom path for authentication contexts config file (default "/home/user")
3131
--insecure Disable certificate validation for TLS connections (e.g. to g.codefresh.io)
3232
--request-timeout duration Request timeout (default 30s)
33+
--silent Disables the command wizard
3334
```
3435

3536
### SEE ALSO

docs/commands/cli-v2_config_current-context.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ cli-v2 config current-context [flags]
2828
--cfconfig string Custom path for authentication contexts config file (default "/home/user")
2929
--insecure Disable certificate validation for TLS connections (e.g. to g.codefresh.io)
3030
--request-timeout duration Request timeout (default 30s)
31+
--silent Disables the command wizard
3132
```
3233

3334
### SEE ALSO

docs/commands/cli-v2_config_delete-context.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ cli-v2 config delete-context CONTEXT [flags]
2828
--cfconfig string Custom path for authentication contexts config file (default "/home/user")
2929
--insecure Disable certificate validation for TLS connections (e.g. to g.codefresh.io)
3030
--request-timeout duration Request timeout (default 30s)
31+
--silent Disables the command wizard
3132
```
3233

3334
### SEE ALSO

docs/commands/cli-v2_config_get-contexts.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ cli-v2 config get-contexts [flags]
2828
--cfconfig string Custom path for authentication contexts config file (default "/home/user")
2929
--insecure Disable certificate validation for TLS connections (e.g. to g.codefresh.io)
3030
--request-timeout duration Request timeout (default 30s)
31+
--silent Disables the command wizard
3132
```
3233

3334
### SEE ALSO

0 commit comments

Comments
 (0)