Skip to content

Commit de147e9

Browse files
author
Paola Nicosia
committed
fix: typo in get and delete itd commands
1 parent 0feae74 commit de147e9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/30_commands.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,10 +1370,10 @@ Get a Catalog item
13701370
13711371
Get an Item Type Definition
13721372
1373-
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.
1373+
You need to specify the name via the respective flag. The company-id flag can be omitted if it is already set in the context and it is used as tenantId of the item type definition.
13741374
13751375
```bash
1376-
miactl itd get --tenantId tenantId --name name
1376+
miactl itd get --name name
13771377
```
13781378
13791379
### delete
@@ -1387,7 +1387,7 @@ Delete an Item Type Definition
13871387
You need to specify the companyId and the item type definition name via the respective flags (recommended). The company-id flag can be omitted if it is already set in the context.
13881388
13891389
```bash
1390-
miactl itd delete --name name --version version ...
1390+
miactl itd delete --name name
13911391
```
13921392
13931393
### put

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const (
4040
4141
You need to specify the companyId and the item type definition name via the respective flags (recommended). The company-id flag can be omitted if it is already set in the context.
4242
`
43-
deleteCmdUse = "delete --name name --version version"
43+
deleteCmdUse = "delete --name name"
4444
)
4545

4646
func DeleteCmd(options *clioptions.CLIOptions) *cobra.Command {
@@ -68,7 +68,7 @@ func DeleteCmd(options *clioptions.CLIOptions) *cobra.Command {
6868
return itd.ErrMissingCompanyID
6969
}
7070

71-
if options.MarketplaceItemVersion != "" && options.MarketplaceItemID != "" {
71+
if options.ItemTypeDefinitionName != "" {
7272
err = deleteITD(
7373
cmd.Context(),
7474
client,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ const (
3232
3333
This command get an Item Type Definitions based on its name and tenant namespace. It works with Mia-Platform Console v14.1.0 or later.
3434
35-
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.
35+
You need to specify the name via the respective flag. The company-id flag can be omitted if it is already set in the context and it is used as tenantId of the item type definition.
3636
`
37-
getCmdUse = "get --tenantId tenantId --name name"
37+
getCmdUse = "get --name name"
3838
)
3939

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

0 commit comments

Comments
 (0)