Merge pull request #1744 from dagger/shykes-hide-doc

Hide `dagger doc`
This commit is contained in:
Andrea Luzzardi 2022-03-09 17:03:24 -08:00 committed by GitHub
commit ea684e39f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,9 +246,11 @@ func mdEscape(s string) string {
}
var docCmd = &cobra.Command{
Use: "doc [PACKAGE | PATH]",
Short: "document a package",
Args: cobra.MaximumNArgs(1),
// FIXME: this command is currently broken as of 0.2.
Hidden: true,
Use: "doc [PACKAGE | PATH]",
Short: "document a package",
Args: cobra.MaximumNArgs(1),
PreRun: func(cmd *cobra.Command, args []string) {
// Fix Viper bug for duplicate flags:
// https://github.com/spf13/viper/issues/233