Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/30_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -1370,10 +1370,10 @@ Get a Catalog item

Get an Item Type Definition

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.
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.

```bash
miactl itd get --tenantId tenantId --name name
miactl itd get --name name
```

### delete
Expand All @@ -1387,7 +1387,7 @@ Delete an Item Type Definition
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.

```bash
miactl itd delete --name name --version version ...
miactl itd delete --name name
```

### put
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/item-type-definition/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const (

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.
`
deleteCmdUse = "delete --name name --version version"
deleteCmdUse = "delete --name name"
)

func DeleteCmd(options *clioptions.CLIOptions) *cobra.Command {
Expand Down Expand Up @@ -68,7 +68,7 @@ func DeleteCmd(options *clioptions.CLIOptions) *cobra.Command {
return itd.ErrMissingCompanyID
}

if options.MarketplaceItemVersion != "" && options.MarketplaceItemID != "" {
if options.ItemTypeDefinitionName != "" {
err = deleteITD(
cmd.Context(),
client,
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/item-type-definition/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const (

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.

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.
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.
`
getCmdUse = "get --tenantId tenantId --name name"
getCmdUse = "get --name name"
)

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