// Execute runs each command in the calling slice sequentially using the passed config and the outputs accumulated to that point.
Execute runs each command in the calling slice sequentially using the passed config and the outputs accumulated to that point.
// Execute runs each command in the calling slice sequentially using the passed config and the outputs accumulated to that point .
func (c Commands) Execute(ctx context.Context, config *Config, args Args, outputs Outputs, streams genericclioptions.IOStreams) (Outputs, error) {
	for _, command := range c {
		output, err := command.Execute(ctx, config, args, outputs, streams)
		if err != nil {
			return nil, err
		}
		if command.ID != "" {
			outputs = outputs.Append(command.ID, string(output))
		}
	}
	return outputs, nil
}
func ( c Commands ) Execute ( ctx context . Context , config * Config , args Args , outputs Outputs , streams genericclioptions . IOStreams ) ( Outputs , error ) { for _ , command := range c { output , err := command . Execute ( ctx , config , args , outputs , streams ) if err != nil { return nil , err } if command . ID != " " { outputs = outputs . Append ( command . ID , string ( output ) ) } } return outputs , nil }
Execute runs each command in the calling slice sequentially using the passed config and the outputs accumulated to that point.
Execute runs each command in the calling slice sequentially using the passed config and the outputs accumulated to that point .