github.com/octohelm/cuemod@v0.9.4/pkg/cli/interface.go (about) 1 package cli 2 3 import "context" 4 5 type Command interface { 6 Naming() *Name 7 Run(ctx context.Context, args []string) error 8 } 9 10 type CanPreRun interface { 11 PreRun(ctx context.Context) context.Context 12 }