Skip to content

Improve error messages for notation CLI #128

@nelson-wu

Description

@nelson-wu

Some examples:

$ notation cert generate-test
2021/11/12 13:53:30 missing certificate hosts

Perhaps flesh this out more with examples, similar to az cli

> az acr import -n 
the following arguments are required: --source

TRY THIS:
az acr import --name MyRegistry --source docker.io/library/hello-world:latest --image targetrepository:targettag
Import an image from a public repository on Docker Hub. The image uses the specified repository and tag names.

az acr import --name MyRegistry --source sourcerepository:sourcetag --image targetrepository:targettag --registry /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sourceResourceGroup/providers/Microsoft.ContainerRegistry/registries/sourceRegistry
Import an image from an Azure container registry in a different subscription.

https://docs.microsoft.com/en-US/cli/azure/acr#az_acr_import
Read more about the command in reference docs

Metadata

Metadata

Assignees

Labels

UXUser experience changeserror messageIssues related to error message improvement

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions