public Task <string> Execute(Context context, params string[] args) { var action = GetAction(args[0]); var client = args[1]; var flow = GetFlow(args[2]); if (action == Action.Invalid) { return(Task.FromResult($"Invalid action {args[0]}")); } switch (action) { case Action.Local: context.SetConfiguration(ConfigurationOptions.LocalConfiguration(client, flow)); break; default: throw new ApplicationException("Unkown Action"); } return(Task.FromResult( $"Set Context to::\n environment: {action.ToString()}\n client: {client}\n flow: {flow.ToString()}\n")); }