Merge pull request #13173 from cli/sammorrowdrums/disable-auth-check-local-flags

Disable auth check for local-only skill flags
This commit is contained in:
Sam Morrow 2026-04-15 23:52:26 +02:00 committed by GitHub
commit d4c6d61734
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,6 +199,7 @@ func NewCmdInstall(f *cmdutil.Factory, runF func(*InstallOptions) error) *cobra.
cmd.Flags().StringVar(&opts.Dir, "dir", "", "Install to a custom directory (overrides --agent and --scope)")
cmd.Flags().BoolVarP(&opts.Force, "force", "f", false, "Overwrite existing skills without prompting")
cmd.Flags().BoolVar(&opts.FromLocal, "from-local", false, "Treat the argument as a local directory path instead of a repository")
cmdutil.DisableAuthCheckFlag(cmd.Flags().Lookup("from-local"))
return cmd
}