@Override public void perform(Arguments arguments, PrintStream printStream) throws Exception { String[] programIdParts = arguments.get("app-id.schedule-id").split("\\."); if (programIdParts.length < 2) { throw new CommandInputError(this); } String appId = programIdParts[0]; String scheduleName = programIdParts[1]; Id.Schedule scheduleId = Id.Schedule.from(cliConfig.getCurrentNamespace(), appId, scheduleName); printStream.println(scheduleClient.getStatus(scheduleId)); }
@Override public void perform(Arguments arguments, PrintStream printStream) throws Exception { String[] programIdParts = arguments.get("app-id.schedule-id").split("\\."); if (programIdParts.length < 2) { throw new CommandInputError(this); } String appId = programIdParts[0]; String scheduleName = programIdParts[1]; Id.Schedule schedule = Id.Schedule.from(cliConfig.getCurrentNamespace(), appId, scheduleName); scheduleClient.resume(schedule); printStream.printf("Successfully resumed schedule '%s' in app '%s'\n", scheduleName, appId); }