update comments
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
310a54f0bd
commit
7565cc4437
4 changed files with 1 additions and 10 deletions
|
|
@ -43,7 +43,7 @@ func (c LiveClient) GetImageDigest(imgName string) (*v1.Hash, error) {
|
|||
}
|
||||
|
||||
// The user must already be authenticated with the container registry
|
||||
// The authn.DefaultKeychain argument indicates that Get should checks the
|
||||
// The authn.DefaultKeychain argument indicates that Get should checks the
|
||||
// user's configuration for the registry credentials
|
||||
desc, err := c.Get(name, remote.WithAuthFromKeychain(authn.DefaultKeychain))
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -73,9 +73,6 @@ func NewDownloadCmd(f *cmdutil.Factory) *cobra.Command {
|
|||
}
|
||||
return nil
|
||||
},
|
||||
// Use Run instead of RunE because if an error is returned by RunVerify
|
||||
// when RunE is used, the command usage will be printed
|
||||
// We only want to print the error, not usage
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
hc, err := f.HttpClient()
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -66,9 +66,6 @@ func NewInspectCmd(f *cmdutil.Factory) *cobra.Command {
|
|||
|
||||
return nil
|
||||
},
|
||||
// Use Run instead of RunE because if an error is returned by runInspect
|
||||
// when RunE is used, the command usage will be printed
|
||||
// We only want to print the error, not usage
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
opts.OCIClient = oci.NewLiveClient()
|
||||
|
||||
|
|
|
|||
|
|
@ -88,9 +88,6 @@ func NewVerifyCmd(f *cmdutil.Factory) *cobra.Command {
|
|||
|
||||
return nil
|
||||
},
|
||||
// Use Run instead of RunE because if an error is returned by runVerify
|
||||
// when RunE is used, the command usage will be printed
|
||||
// We only want to print the error, not usage
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
hc, err := f.HttpClient()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue