コード例 #1
0
 static void RunProjectTasks(ProjectOptions opts)
 {
     if (opts.Get)
     {
         var result =
             projectApi.getProjects(Email.From(opts.Username), Password.From(opts.Password), resetEvent);
         CliPresenter.present(result.Result);
     }
 }
コード例 #2
0
 static void RunWorkspaceTasks(WorkspaceOptions opts)
 {
     if (opts.Get)
     {
         var workspaces = workspaceApi.getWorkspaces(Email.From(opts.Username), Password.From(opts.Password),
                                                     resetEvent);
         CliPresenter.present(workspaces.Result);
     }
 }