Skip to content

Commit 3ed264b

Browse files
author
Paola Nicosia
committed
fix: commands use
1 parent 761be7e commit 3ed264b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

internal/cmd/item-type-definition/get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const (
3434
3535
You need to specify the name and its tenant namespace, via the respective flags. The company-id flag can be omitted if it is already set in the context.
3636
`
37-
getCmdUse = "list --tenantId tenantId --name name"
37+
getCmdUse = "get --tenantId tenantId --name name"
3838
)
3939

4040
func GetCmd(options *clioptions.CLIOptions) *cobra.Command {

internal/cmd/item-type-definition/put.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ const (
5252

5353
putExample = `
5454
# Create the item type definition in file myFantasticGoTemplate.json located in the current directory
55-
miactl catalog apply --file myFantasticGoTemplate.json
55+
miactl catalog put --file myFantasticGoTemplate.json
5656
5757
# Create the item type definition in file myFantasticGoTemplate.json, with relative path
58-
miactl catalog apply --file ./path/to/myFantasticGoTemplate.json`
58+
miactl catalog put --file ./path/to/myFantasticGoTemplate.json`
5959

60-
putCmdUse = "delete { --file file-path }"
60+
putCmdUse = "put { --file file-path }"
6161
)
6262

6363
func PutCmd(options *clioptions.CLIOptions) *cobra.Command {

internal/cmd/item-type-definition/put_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestPutCommand(t *testing.T) {
3737
opts.Endpoint = server.URL
3838

3939
cmd := PutCmd(opts)
40-
cmd.SetArgs([]string{"apply", "-f", "testdata/validItem1.json"})
40+
cmd.SetArgs([]string{"put", "--file", "testdata/validItem1.json"})
4141

4242
err := cmd.Execute()
4343
require.ErrorIs(t, err, itd.ErrUnsupportedCompanyVersion)

0 commit comments

Comments
 (0)