protected override void InnerExecute(string[] arguments) { var application = _client.GetApplication(ApplicationId); _writer.WriteLine("Id: {0}", application.Slug); _writer.WriteLine("Name: {0}", application.Name); _writer.WriteLine("Region: {0}", application.RegionIdentifier); }
protected override void InnerExecute(string[] arguments) { if (arguments.Length == 0) { throw new CommandException("Please specify an application id."); } var user = _appharborClient.GetUser(); Application application; try { application = _appharborClient.GetApplication(arguments[0]); } catch (ApiException) { throw new CommandException("The application could not be found"); } _applicationConfiguration.SetupApplication(application.Slug, user); }