diff --git a/cmd/execute/execute.go b/cmd/execute/execute.go index 43be02d..9d7ae41 100644 --- a/cmd/execute/execute.go +++ b/cmd/execute/execute.go @@ -9,7 +9,7 @@ func NewExecuteCmd(f *cmdutil.Factory) *cobra.Command { cmd := &cobra.Command{ Use: "execute", Short: "Execute direct blockchain actions", - Aliases: []string{"ex"}, + Aliases: []string{"ex", "exec"}, Long: `Execute blockchain operations directly without building a full workflow. Supports token transfers and smart contract calls. Returns execution IDs immediately; use --wait to block until completion. diff --git a/cmd/protocol/protocol.go b/cmd/protocol/protocol.go index b2fef10..12ea255 100644 --- a/cmd/protocol/protocol.go +++ b/cmd/protocol/protocol.go @@ -9,7 +9,7 @@ func NewProtocolCmd(f *cmdutil.Factory) *cobra.Command { cmd := &cobra.Command{ Use: "protocol", Short: "Browse blockchain protocols", - Aliases: []string{"pr"}, + Aliases: []string{"pr", "proto"}, Example: ` # List all protocols kh pr ls diff --git a/cmd/root_test.go b/cmd/root_test.go index 64d4a00..3402ae8 100644 --- a/cmd/root_test.go +++ b/cmd/root_test.go @@ -178,7 +178,7 @@ func TestRootCmdHelpDoesNotIncludeAPIKey(t *testing.T) { } func TestAllNounAliasesResolve(t *testing.T) { - aliases := []string{"wf", "r", "ex", "p", "t", "o", "a", "pr", "w", "tp", "b", "doc", "v"} + aliases := []string{"wf", "r", "ex", "exec", "p", "t", "o", "a", "pr", "proto", "w", "tp", "tpl", "b", "doc", "v"} for _, alias := range aliases { t.Run(alias, func(t *testing.T) { diff --git a/cmd/template/template.go b/cmd/template/template.go index 25d058b..378546a 100644 --- a/cmd/template/template.go +++ b/cmd/template/template.go @@ -9,7 +9,7 @@ func NewTemplateCmd(f *cmdutil.Factory) *cobra.Command { cmd := &cobra.Command{ Use: "template", Short: "Manage workflow templates", - Aliases: []string{"tp"}, + Aliases: []string{"tp", "tpl"}, Example: ` # List available templates kh tp ls diff --git a/cmd/workflow/run.go b/cmd/workflow/run.go index d25cf67..9621409 100644 --- a/cmd/workflow/run.go +++ b/cmd/workflow/run.go @@ -39,7 +39,7 @@ func NewRunCmd(f *cmdutil.Factory) *cobra.Command { cmd := &cobra.Command{ Use: "run ", Short: "Run a workflow", - Aliases: []string{"r"}, + Aliases: []string{"r", "exec"}, Args: cobra.ExactArgs(1), Long: `Run triggers a workflow execution. By default the command returns the execution ID immediately. Use --wait to block until the run completes