type execute … func (e *execute) Name() string { … } func (e *execute) Parent() string { … } func (e *execute) Usage() string { … } func (e *execute) ShortHelp() string { … } func (e *execute) DetailedHelp(f *flag.FlagSet) { … } func (e *execute) Run(ctx context.Context, args ...string) error { … } // executeCommand executes a protocol.Command, displaying progress // messages and awaiting completion of asynchronous commands. // // TODO(rfindley): inline away all calls, ensuring they inline idiomatically. func (conn *connection) executeCommand(ctx context.Context, cmd *protocol.Command) (any, error) { … }