Skip to content

Commit

Permalink
Rename flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Jun 22, 2023
1 parent d037f35 commit b9310b1
Show file tree
Hide file tree
Showing 42 changed files with 606 additions and 606 deletions.
4 changes: 2 additions & 2 deletions cmd/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ func validateTableRows(t *testing.T, want, got string) {
}

func appendFromFileCommonArgs(args ...string) []string {
return append(args, []string{"-f", "/file.yaml", "--force", "--bulk-output"}...)
return append(args, []string{"-f", "/file.yaml", "--skip-security-prompts", "--bulk-output"}...)
}

func commonExcludedFileArgs() []string {
return []string{"file", "bulk-output", "force", "timestamps"}
return []string{"file", "bulk-output", "skip-security-prompts", "timestamps"}
}
32 changes: 16 additions & 16 deletions docs/metalctl_filesystemlayout_apply.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ metalctl filesystemlayout apply [flags]
### Options

```
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl filesystemlayout describe filesystemlayout-1 -o yaml > filesystemlayout.yaml
$ vi filesystemlayout.yaml
$ # either via stdin
$ cat filesystemlayout.yaml | metalctl filesystemlayout apply -f -
$ # or via file
$ metalctl filesystemlayout apply -f filesystemlayout.yaml
the file can also contain multiple documents and perform a bulk operation.
--force skips security prompt for bulk operations
-h, --help help for apply
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl filesystemlayout describe filesystemlayout-1 -o yaml > filesystemlayout.yaml
$ vi filesystemlayout.yaml
$ # either via stdin
$ cat filesystemlayout.yaml | metalctl filesystemlayout apply -f -
$ # or via file
$ metalctl filesystemlayout apply -f filesystemlayout.yaml
the file can also contain multiple documents and perform a bulk operation.
-h, --help help for apply
--skip-security-prompts skips security prompt for bulk operations
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
```

### Options inherited from parent commands
Expand Down
32 changes: 16 additions & 16 deletions docs/metalctl_filesystemlayout_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ metalctl filesystemlayout create [flags]
### Options

```
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl filesystemlayout describe filesystemlayout-1 -o yaml > filesystemlayout.yaml
$ vi filesystemlayout.yaml
$ # either via stdin
$ cat filesystemlayout.yaml | metalctl filesystemlayout create -f -
$ # or via file
$ metalctl filesystemlayout create -f filesystemlayout.yaml
the file can also contain multiple documents and perform a bulk operation.
--force skips security prompt for bulk operations
-h, --help help for create
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl filesystemlayout describe filesystemlayout-1 -o yaml > filesystemlayout.yaml
$ vi filesystemlayout.yaml
$ # either via stdin
$ cat filesystemlayout.yaml | metalctl filesystemlayout create -f -
$ # or via file
$ metalctl filesystemlayout create -f filesystemlayout.yaml
the file can also contain multiple documents and perform a bulk operation.
-h, --help help for create
--skip-security-prompts skips security prompt for bulk operations
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
```

### Options inherited from parent commands
Expand Down
32 changes: 16 additions & 16 deletions docs/metalctl_filesystemlayout_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ metalctl filesystemlayout delete <id> [flags]
### Options

```
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl filesystemlayout describe filesystemlayout-1 -o yaml > filesystemlayout.yaml
$ vi filesystemlayout.yaml
$ # either via stdin
$ cat filesystemlayout.yaml | metalctl filesystemlayout delete <id> -f -
$ # or via file
$ metalctl filesystemlayout delete <id> -f filesystemlayout.yaml
the file can also contain multiple documents and perform a bulk operation.
--force skips security prompt for bulk operations
-h, --help help for delete
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl filesystemlayout describe filesystemlayout-1 -o yaml > filesystemlayout.yaml
$ vi filesystemlayout.yaml
$ # either via stdin
$ cat filesystemlayout.yaml | metalctl filesystemlayout delete <id> -f -
$ # or via file
$ metalctl filesystemlayout delete <id> -f filesystemlayout.yaml
the file can also contain multiple documents and perform a bulk operation.
-h, --help help for delete
--skip-security-prompts skips security prompt for bulk operations
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
```

### Options inherited from parent commands
Expand Down
32 changes: 16 additions & 16 deletions docs/metalctl_filesystemlayout_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ metalctl filesystemlayout update [flags]
### Options

```
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl filesystemlayout describe filesystemlayout-1 -o yaml > filesystemlayout.yaml
$ vi filesystemlayout.yaml
$ # either via stdin
$ cat filesystemlayout.yaml | metalctl filesystemlayout update -f -
$ # or via file
$ metalctl filesystemlayout update -f filesystemlayout.yaml
the file can also contain multiple documents and perform a bulk operation.
--force skips security prompt for bulk operations
-h, --help help for update
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl filesystemlayout describe filesystemlayout-1 -o yaml > filesystemlayout.yaml
$ vi filesystemlayout.yaml
$ # either via stdin
$ cat filesystemlayout.yaml | metalctl filesystemlayout update -f -
$ # or via file
$ metalctl filesystemlayout update -f filesystemlayout.yaml
the file can also contain multiple documents and perform a bulk operation.
-h, --help help for update
--skip-security-prompts skips security prompt for bulk operations
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/metalctl_firewall_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ metalctl firewall create [flags]
the file can also contain multiple documents and perform a bulk operation.
--filesystemlayout string Filesystemlayout to use during machine installation. [optional]
--force skips security prompt for bulk operations
-h, --help help for create
-H, --hostname string Hostname of the firewall. [required]
-I, --id string ID of a specific firewall to allocate, if given, size and partition are ignored. Need to be set to reserved (--reserve) state before.
Expand All @@ -42,6 +41,7 @@ metalctl firewall create [flags]
-S, --partition string partition/datacenter where the firewall is created. [required, except for reserved machines]
-P, --project string Project where the firewall should belong to. [required]
-s, --size string Size of the firewall. [required, except for reserved machines]
--skip-security-prompts skips security prompt for bulk operations
-p, --sshpublickey string SSH public key for access via ssh and console. [optional]
Can be either the public key as string, or pointing to the public key file to use e.g.: "@~/.ssh/id_rsa.pub".
If ~/.ssh/[id_ed25519.pub | id_rsa.pub | id_dsa.pub] is present it will be picked as default, matching the first one in this order.
Expand Down
32 changes: 16 additions & 16 deletions docs/metalctl_image_apply.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ metalctl image apply [flags]
### Options

```
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl image describe image-1 -o yaml > image.yaml
$ vi image.yaml
$ # either via stdin
$ cat image.yaml | metalctl image apply -f -
$ # or via file
$ metalctl image apply -f image.yaml
the file can also contain multiple documents and perform a bulk operation.
--force skips security prompt for bulk operations
-h, --help help for apply
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl image describe image-1 -o yaml > image.yaml
$ vi image.yaml
$ # either via stdin
$ cat image.yaml | metalctl image apply -f -
$ # or via file
$ metalctl image apply -f image.yaml
the file can also contain multiple documents and perform a bulk operation.
-h, --help help for apply
--skip-security-prompts skips security prompt for bulk operations
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
```

### Options inherited from parent commands
Expand Down
42 changes: 21 additions & 21 deletions docs/metalctl_image_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ metalctl image create [flags]
### Options

```
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-d, --description string Description of the image.
--features strings features of the image, can be one of machine|firewall
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl image describe image-1 -o yaml > image.yaml
$ vi image.yaml
$ # either via stdin
$ cat image.yaml | metalctl image create -f -
$ # or via file
$ metalctl image create -f image.yaml
the file can also contain multiple documents and perform a bulk operation.
--force skips security prompt for bulk operations
-h, --help help for create
--id string ID of the image.
-n, --name string Name of the image.
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
--url string url of the image.
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-d, --description string Description of the image.
--features strings features of the image, can be one of machine|firewall
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl image describe image-1 -o yaml > image.yaml
$ vi image.yaml
$ # either via stdin
$ cat image.yaml | metalctl image create -f -
$ # or via file
$ metalctl image create -f image.yaml
the file can also contain multiple documents and perform a bulk operation.
-h, --help help for create
--id string ID of the image.
-n, --name string Name of the image.
--skip-security-prompts skips security prompt for bulk operations
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
--url string url of the image.
```

### Options inherited from parent commands
Expand Down
32 changes: 16 additions & 16 deletions docs/metalctl_image_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ metalctl image delete <id> [flags]
### Options

```
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl image describe image-1 -o yaml > image.yaml
$ vi image.yaml
$ # either via stdin
$ cat image.yaml | metalctl image delete <id> -f -
$ # or via file
$ metalctl image delete <id> -f image.yaml
the file can also contain multiple documents and perform a bulk operation.
--force skips security prompt for bulk operations
-h, --help help for delete
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
--bulk-output when used with --file (bulk operation): prints results at the end as a list. default is printing results intermediately during the operation, which causes single entities to be printed in a row.
-f, --file string filename of the create or update request in yaml format, or - for stdin.
Example:
$ metalctl image describe image-1 -o yaml > image.yaml
$ vi image.yaml
$ # either via stdin
$ cat image.yaml | metalctl image delete <id> -f -
$ # or via file
$ metalctl image delete <id> -f image.yaml
the file can also contain multiple documents and perform a bulk operation.
-h, --help help for delete
--skip-security-prompts skips security prompt for bulk operations
--timestamps when used with --file (bulk operation): prints timestamps in-between the operations
```

### Options inherited from parent commands
Expand Down
Loading

0 comments on commit b9310b1

Please sign in to comment.