|
|
@ -1125,6 +1125,7 @@ func TestApp_Run_Version(t *testing.T) {
|
|
|
|
func TestApp_Run_Categories(t *testing.T) {
|
|
|
|
func TestApp_Run_Categories(t *testing.T) {
|
|
|
|
app := NewApp()
|
|
|
|
app := NewApp()
|
|
|
|
app.Name = "categories"
|
|
|
|
app.Name = "categories"
|
|
|
|
|
|
|
|
app.HideHelp = true
|
|
|
|
app.Commands = []Command{
|
|
|
|
app.Commands = []Command{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name: "command1",
|
|
|
|
Name: "command1",
|
|
|
@ -1174,6 +1175,7 @@ func TestApp_Run_Categories(t *testing.T) {
|
|
|
|
func TestApp_VisibleCategories(t *testing.T) {
|
|
|
|
func TestApp_VisibleCategories(t *testing.T) {
|
|
|
|
app := NewApp()
|
|
|
|
app := NewApp()
|
|
|
|
app.Name = "visible-categories"
|
|
|
|
app.Name = "visible-categories"
|
|
|
|
|
|
|
|
app.HideHelp = true
|
|
|
|
app.Commands = []Command{
|
|
|
|
app.Commands = []Command{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name: "command1",
|
|
|
|
Name: "command1",
|
|
|
@ -1213,6 +1215,7 @@ func TestApp_VisibleCategories(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
app = NewApp()
|
|
|
|
app = NewApp()
|
|
|
|
app.Name = "visible-categories"
|
|
|
|
app.Name = "visible-categories"
|
|
|
|
|
|
|
|
app.HideHelp = true
|
|
|
|
app.Commands = []Command{
|
|
|
|
app.Commands = []Command{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name: "command1",
|
|
|
|
Name: "command1",
|
|
|
@ -1247,6 +1250,7 @@ func TestApp_VisibleCategories(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
app = NewApp()
|
|
|
|
app = NewApp()
|
|
|
|
app.Name = "visible-categories"
|
|
|
|
app.Name = "visible-categories"
|
|
|
|
|
|
|
|
app.HideHelp = true
|
|
|
|
app.Commands = []Command{
|
|
|
|
app.Commands = []Command{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name: "command1",
|
|
|
|
Name: "command1",
|
|
|
|