Skip to content

Commit

Permalink
Merge pull request #262 from SAP/fix_mtad_gen
Browse files Browse the repository at this point in the history
fix mbt commands help
  • Loading branch information
ShimiT authored Feb 21, 2019
2 parents bba6380 + 55efef7 commit 1992642
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
19 changes: 11 additions & 8 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,20 @@ var generateCmd = &cobra.Command{

// Parent command - MTA info provider
var provideCmd = &cobra.Command{
Use: "provide",
Short: "MBT data provider",
Long: "MBT data provider",
Run: nil,
Use: "provide",
Short: "MBT data provider",
Long: "MBT data provider",
Hidden: true,
Run: nil,
}

// moduleCmd - Parent of all module commands
var moduleCmd = &cobra.Command{
Use: "module",
Short: "MBT module commands",
Long: "MBT module commands",
Run: nil,
Use: "module",
Short: "MBT module commands",
Long: "MBT module commands",
Hidden: true,
Run: nil,
}

// Cleanup temp artifacts
Expand All @@ -90,6 +92,7 @@ var cleanupCmd = &cobra.Command{
return err
},
SilenceUsage: true,
Hidden: true,
SilenceErrors: true,
}

Expand Down
2 changes: 2 additions & 0 deletions cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ var metaCmd = &cobra.Command{
logError(err)
return err
},
Hidden: true,
SilenceUsage: true,
SilenceErrors: true,
}
Expand All @@ -95,6 +96,7 @@ var mtarCmd = &cobra.Command{
logError(err)
return err
},
Hidden: true,
SilenceUsage: true,
SilenceErrors: true,
}
2 changes: 2 additions & 0 deletions cmd/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ var buildModuleCmd = &cobra.Command{
logError(err)
return err
},
Hidden: true,
SilenceUsage: true,
SilenceErrors: true,
}
Expand All @@ -78,6 +79,7 @@ var packModuleCmd = &cobra.Command{
logError(err)
return err
},
Hidden: true,
SilenceUsage: true,
SilenceErrors: true,
}
1 change: 1 addition & 0 deletions cmd/provide.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var provideModuleCmd = &cobra.Command{
logError(err)
return err
},
Hidden: true,
SilenceUsage: true,
SilenceErrors: true,
}

0 comments on commit 1992642

Please sign in to comment.