mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 12:28:01 +08:00
refactor(cli): added equivalent subcommands for each flag combination under every command (#1674)
- image command is now deprecated in favor of 'images' - cve command is now deprecated in favor of 'cves' Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
+6
-2
@@ -74,7 +74,7 @@ var (
|
||||
ErrInvalidArgs = errors.New("cli: Invalid Arguments")
|
||||
ErrInvalidFlagsCombination = errors.New("cli: Invalid combination of flags")
|
||||
ErrInvalidURL = errors.New("cli: invalid URL format")
|
||||
ErrExtensionNotEnabled = errors.New("cli: functionality is not built in current version")
|
||||
ErrExtensionNotEnabled = errors.New("cli: functionality is not built/configured in the current server")
|
||||
ErrUnauthorizedAccess = errors.New("auth: unauthorized access. check credentials")
|
||||
ErrCannotResetConfigKey = errors.New("cli: cannot reset given config key")
|
||||
ErrConfigNotFound = errors.New("cli: config with the given name does not exist")
|
||||
@@ -115,7 +115,7 @@ var (
|
||||
ErrEmptyRepoName = errors.New("metadb: repo name can't be empty string")
|
||||
ErrEmptyTag = errors.New("metadb: tag can't be empty string")
|
||||
ErrEmptyDigest = errors.New("metadb: digest can't be empty string")
|
||||
ErrInvalidRepoRefFormat = errors.New("invalid image reference format")
|
||||
ErrInvalidRepoRefFormat = errors.New("invalid image reference format [repo:tag] or [repo@digest]")
|
||||
ErrLimitIsNegative = errors.New("pageturner: limit has negative value")
|
||||
ErrOffsetIsNegative = errors.New("pageturner: offset has negative value")
|
||||
ErrSortCriteriaNotSupported = errors.New("pageturner: the sort criteria is not supported")
|
||||
@@ -151,4 +151,8 @@ var (
|
||||
ErrInvalidPublicKeyContent = errors.New("signatures: invalid public key content")
|
||||
ErrInvalidStateCookie = errors.New("auth: state cookie not present or differs from original state")
|
||||
ErrSyncNoURLsLeft = errors.New("sync: no valid registry urls left after filtering local ones")
|
||||
ErrInvalidCLIParameter = errors.New("cli: invalid parameter")
|
||||
ErrGQLEndpointNotFound = errors.New("cli: the server doesn't have a gql endpoint")
|
||||
ErrGQLQueryNotSupported = errors.New("cli: query is not supported or has different arguments")
|
||||
ErrBadHTTPStatusCode = errors.New("cli: the response doesn't contain the expected status code")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user