Route executions through neutral snapshots
This commit is contained in:
@@ -9,9 +9,17 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
commandmeta "gitea.maximumdirect.net/eric/CommandKit/internal/commandmeta"
|
||||
spfcobra "github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
type Command = commandmeta.Command
|
||||
type Argument = commandmeta.Argument
|
||||
type Flag = commandmeta.Flag
|
||||
type Failure = commandmeta.Failure
|
||||
type Result = commandmeta.Result
|
||||
type ParseOptions = commandmeta.ParseOptions
|
||||
|
||||
func TestParseRoutesBeforeOptionsAndKeepsFlagsLocal(t *testing.T) {
|
||||
tree := &Command{Name: "app", Children: []*Command{
|
||||
{Name: "config", Children: []*Command{
|
||||
|
||||
Reference in New Issue
Block a user