{"action":"created","comment":{"url":"https://api.github.com/repos/uber/cadence/pulls/comments/171413050","pull_request_review_id":100261823,"id":171413050,"diff_hunk":"@@ -0,0 +1,86 @@\n+## What\n+Cadence CLI provide an command-line tool for users to perform various tasks on Cadence.  \n+Users can perform operations like register, update and describe on domain;  \n+also start workflow, show workflow history, signal workflow ... and many other tasks.    \n+\n+## How\n+- Run `make bins`\n+- You should see an executable `cadence`\n+\n+## Quick Start\n+Run `./cadence` to view help message. There are some top level commands and global options.   \n+Run `./cadence domain` to view help message about operations on domain  \n+Run `./cadence workflow` to view help message about operations on workflow  \n+(`./cadence help`, `./cadence help [domain|workflow]` will also print help messages)\n+\n+**Note:** make sure you have cadence server running before using CLI \n+\n+### Domain operation examples \n+- Register a new domain named \"samples-domain\":  \n+```\n+./cadence --domain samples-domain domain register \n+# OR using short alias  \n+./cadence --do samples-domain domain re\n+```   \n+- View \"samples-domain\" details:   \n+```\n+./cadence --domain samples-domain domain describe  \n+```\n+\n+**Tips:**  \n+to avoid repeated input global option **domain**, user can export domain-name in environment variable CADENCE_CLI_DOMAIN.\n+```\n+export CADENCE_CLI_DOMAIN=samples-domain\n+\n+# then just run commands without --domain flag, like\n+./cadence domain desc\n+```\n+\n+### Workflow operation examples\n+(The following examples assume you already export CADENCE_CLI_DOMAIN environment variable as Tips above)\n+\n+- Run workflow: Start a workflow and see it's progress \n+```\n+./cadence workflow run --tl helloWorldGroup --wt main.Workflow --et 60 --dt 10 -i '\"cadence\"'","path":"tools/cli/README.md","position":44,"original_position":44,"commit_id":"78f19da06e8cfd0f2df163ebab3aef31357234f5","original_commit_id":"78f19da06e8cfd0f2df163ebab3aef31357234f5","user":{"login":"mfateev","id":1463622,"avatar_url":"https://avatars1.githubusercontent.com/u/1463622?v=4","gravatar_id":"","url":"https://api.github.com/users/mfateev","html_url":"https://github.com/mfateev","followers_url":"https://api.github.com/users/mfateev/followers","following_url":"https://api.github.com/users/mfateev/following{/other_user}","gists_url":"https://api.github.com/users/mfateev/gists{/gist_id}","starred_url":"https://api.github.com/users/mfateev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfateev/subscriptions","organizations_url":"https://api.github.com/users/mfateev/orgs","repos_url":"https://api.github.com/users/mfateev/repos","events_url":"https://api.github.com/users/mfateev/events{/privacy}","received_events_url":"https://api.github.com/users/mfateev/received_events","type":"User","site_admin":false},"body":"Let's default decision task timeout to something like 5 seconds and do not require it.","created_at":"2018-02-28T22:54:38Z","updated_at":"2018-02-28T22:59:40Z","html_url":"https://github.com/uber/cadence/pull/577#discussion_r171413050","pull_request_url":"https://api.github.com/repos/uber/cadence/pulls/577","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/uber/cadence/pulls/comments/171413050"},"html":{"href":"https://github.com/uber/cadence/pull/577#discussion_r171413050"},"pull_request":{"href":"https://api.github.com/repos/uber/cadence/pulls/577"}}},"pull_request":{"url":"https://api.github.com/repos/uber/cadence/pulls/577","id":170917286,"html_url":"https://github.com/uber/cadence/pull/577","diff_url":"https://github.com/uber/cadence/pull/577.diff","patch_url":"https://github.com/uber/cadence/pull/577.patch","issue_url":"https://api.github.com/repos/uber/cadence/issues/577","number":577,"state":"open","locked":false,"title":"Cadence CLI","user":{"login":"vancexu","id":1283368,"avatar_url":"https://avatars0.githubusercontent.com/u/1283368?v=4","gravatar_id":"","url":"https://api.github.com/users/vancexu","html_url":"https://github.com/vancexu","followers_url":"https://api.github.com/users/vancexu/followers","following_url":"https://api.github.com/users/vancexu/following{/other_user}","gists_url":"https://api.github.com/users/vancexu/gists{/gist_id}","starred_url":"https://api.github.com/users/vancexu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vancexu/subscriptions","organizations_url":"https://api.github.com/users/vancexu/orgs","repos_url":"https://api.github.com/users/vancexu/repos","events_url":"https://api.github.com/users/vancexu/events{/privacy}","received_events_url":"https://api.github.com/users/vancexu/received_events","type":"User","site_admin":false},"body":"command line tool for users to perform common tasks with cadence, see readme for details. \r\nTests will be done in separate PR","created_at":"2018-02-23T02:17:43Z","updated_at":"2018-02-28T22:59:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42061884ab572a91053bbc579d8f638a12a99899","assignee":null,"assignees":[],"requested_reviewers":[{"login":"samarabbas","id":1766515,"avatar_url":"https://avatars1.githubusercontent.com/u/1766515?v=4","gravatar_id":"","url":"https://api.github.com/users/samarabbas","html_url":"https://github.com/samarabbas","followers_url":"https://api.github.com/users/samarabbas/followers","following_url":"https://api.github.com/users/samarabbas/following{/other_user}","gists_url":"https://api.github.com/users/samarabbas/gists{/gist_id}","starred_url":"https://api.github.com/users/samarabbas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samarabbas/subscriptions","organizations_url":"https://api.github.com/users/samarabbas/orgs","repos_url":"https://api.github.com/users/samarabbas/repos","events_url":"https://api.github.com/users/samarabbas/events{/privacy}","received_events_url":"https://api.github.com/users/samarabbas/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/uber/cadence/pulls/577/commits","review_comments_url":"https://api.github.com/repos/uber/cadence/pulls/577/comments","review_comment_url":"https://api.github.com/repos/uber/cadence/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uber/cadence/issues/577/comments","statuses_url":"https://api.github.com/repos/uber/cadence/statuses/78f19da06e8cfd0f2df163ebab3aef31357234f5","head":{"label":"uber:cli","ref":"cli","sha":"78f19da06e8cfd0f2df163ebab3aef31357234f5","user":{"login":"uber","id":538264,"avatar_url":"https://avatars3.githubusercontent.com/u/538264?v=4","gravatar_id":"","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"repo":{"id":82700090,"name":"cadence","full_name":"uber/cadence","owner":{"login":"uber","id":538264,"avatar_url":"https://avatars3.githubusercontent.com/u/538264?v=4","gravatar_id":"","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uber/cadence","description":"Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way.","fork":false,"url":"https://api.github.com/repos/uber/cadence","forks_url":"https://api.github.com/repos/uber/cadence/forks","keys_url":"https://api.github.com/repos/uber/cadence/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uber/cadence/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uber/cadence/teams","hooks_url":"https://api.github.com/repos/uber/cadence/hooks","issue_events_url":"https://api.github.com/repos/uber/cadence/issues/events{/number}","events_url":"https://api.github.com/repos/uber/cadence/events","assignees_url":"https://api.github.com/repos/uber/cadence/assignees{/user}","branches_url":"https://api.github.com/repos/uber/cadence/branches{/branch}","tags_url":"https://api.github.com/repos/uber/cadence/tags","blobs_url":"https://api.github.com/repos/uber/cadence/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uber/cadence/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uber/cadence/git/refs{/sha}","trees_url":"https://api.github.com/repos/uber/cadence/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uber/cadence/statuses/{sha}","languages_url":"https://api.github.com/repos/uber/cadence/languages","stargazers_url":"https://api.github.com/repos/uber/cadence/stargazers","contributors_url":"https://api.github.com/repos/uber/cadence/contributors","subscribers_url":"https://api.github.com/repos/uber/cadence/subscribers","subscription_url":"https://api.github.com/repos/uber/cadence/subscription","commits_url":"https://api.github.com/repos/uber/cadence/commits{/sha}","git_commits_url":"https://api.github.com/repos/uber/cadence/git/commits{/sha}","comments_url":"https://api.github.com/repos/uber/cadence/comments{/number}","issue_comment_url":"https://api.github.com/repos/uber/cadence/issues/comments{/number}","contents_url":"https://api.github.com/repos/uber/cadence/contents/{+path}","compare_url":"https://api.github.com/repos/uber/cadence/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uber/cadence/merges","archive_url":"https://api.github.com/repos/uber/cadence/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uber/cadence/downloads","issues_url":"https://api.github.com/repos/uber/cadence/issues{/number}","pulls_url":"https://api.github.com/repos/uber/cadence/pulls{/number}","milestones_url":"https://api.github.com/repos/uber/cadence/milestones{/number}","notifications_url":"https://api.github.com/repos/uber/cadence/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uber/cadence/labels{/name}","releases_url":"https://api.github.com/repos/uber/cadence/releases{/id}","deployments_url":"https://api.github.com/repos/uber/cadence/deployments","created_at":"2017-02-21T16:10:18Z","updated_at":"2018-02-28T08:59:29Z","pushed_at":"2018-02-28T22:34:09Z","git_url":"git://github.com/uber/cadence.git","ssh_url":"git@github.com:uber/cadence.git","clone_url":"https://github.com/uber/cadence.git","svn_url":"https://github.com/uber/cadence","homepage":"","size":12165,"stargazers_count":225,"watchers_count":225,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":25,"mirror_url":null,"archived":false,"open_issues_count":101,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":25,"open_issues":101,"watchers":225,"default_branch":"master"}},"base":{"label":"uber:master","ref":"master","sha":"ad78f5f2006d73ca0389eb976c278d6b71033a6f","user":{"login":"uber","id":538264,"avatar_url":"https://avatars3.githubusercontent.com/u/538264?v=4","gravatar_id":"","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"repo":{"id":82700090,"name":"cadence","full_name":"uber/cadence","owner":{"login":"uber","id":538264,"avatar_url":"https://avatars3.githubusercontent.com/u/538264?v=4","gravatar_id":"","url":"https://api.github.com/users/uber","html_url":"https://github.com/uber","followers_url":"https://api.github.com/users/uber/followers","following_url":"https://api.github.com/users/uber/following{/other_user}","gists_url":"https://api.github.com/users/uber/gists{/gist_id}","starred_url":"https://api.github.com/users/uber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber/subscriptions","organizations_url":"https://api.github.com/users/uber/orgs","repos_url":"https://api.github.com/users/uber/repos","events_url":"https://api.github.com/users/uber/events{/privacy}","received_events_url":"https://api.github.com/users/uber/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uber/cadence","description":"Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way.","fork":false,"url":"https://api.github.com/repos/uber/cadence","forks_url":"https://api.github.com/repos/uber/cadence/forks","keys_url":"https://api.github.com/repos/uber/cadence/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uber/cadence/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uber/cadence/teams","hooks_url":"https://api.github.com/repos/uber/cadence/hooks","issue_events_url":"https://api.github.com/repos/uber/cadence/issues/events{/number}","events_url":"https://api.github.com/repos/uber/cadence/events","assignees_url":"https://api.github.com/repos/uber/cadence/assignees{/user}","branches_url":"https://api.github.com/repos/uber/cadence/branches{/branch}","tags_url":"https://api.github.com/repos/uber/cadence/tags","blobs_url":"https://api.github.com/repos/uber/cadence/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uber/cadence/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uber/cadence/git/refs{/sha}","trees_url":"https://api.github.com/repos/uber/cadence/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uber/cadence/statuses/{sha}","languages_url":"https://api.github.com/repos/uber/cadence/languages","stargazers_url":"https://api.github.com/repos/uber/cadence/stargazers","contributors_url":"https://api.github.com/repos/uber/cadence/contributors","subscribers_url":"https://api.github.com/repos/uber/cadence/subscribers","subscription_url":"https://api.github.com/repos/uber/cadence/subscription","commits_url":"https://api.github.com/repos/uber/cadence/commits{/sha}","git_commits_url":"https://api.github.com/repos/uber/cadence/git/commits{/sha}","comments_url":"https://api.github.com/repos/uber/cadence/comments{/number}","issue_comment_url":"https://api.github.com/repos/uber/cadence/issues/comments{/number}","contents_url":"https://api.github.com/repos/uber/cadence/contents/{+path}","compare_url":"https://api.github.com/repos/uber/cadence/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uber/cadence/merges","archive_url":"https://api.github.com/repos/uber/cadence/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uber/cadence/downloads","issues_url":"https://api.github.com/repos/uber/cadence/issues{/number}","pulls_url":"https://api.github.com/repos/uber/cadence/pulls{/number}","milestones_url":"https://api.github.com/repos/uber/cadence/milestones{/number}","notifications_url":"https://api.github.com/repos/uber/cadence/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uber/cadence/labels{/name}","releases_url":"https://api.github.com/repos/uber/cadence/releases{/id}","deployments_url":"https://api.github.com/repos/uber/cadence/deployments","created_at":"2017-02-21T16:10:18Z","updated_at":"2018-02-28T08:59:29Z","pushed_at":"2018-02-28T22:34:09Z","git_url":"git://github.com/uber/cadence.git","ssh_url":"git@github.com:uber/cadence.git","clone_url":"https://github.com/uber/cadence.git","svn_url":"https://github.com/uber/cadence","homepage":"","size":12165,"stargazers_count":225,"watchers_count":225,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":25,"mirror_url":null,"archived":false,"open_issues_count":101,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":25,"open_issues":101,"watchers":225,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uber/cadence/pulls/577"},"html":{"href":"https://github.com/uber/cadence/pull/577"},"issue":{"href":"https://api.github.com/repos/uber/cadence/issues/577"},"comments":{"href":"https://api.github.com/repos/uber/cadence/issues/577/comments"},"review_comments":{"href":"https://api.github.com/repos/uber/cadence/pulls/577/comments"},"review_comment":{"href":"https://api.github.com/repos/uber/cadence/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uber/cadence/pulls/577/commits"},"statuses":{"href":"https://api.github.com/repos/uber/cadence/statuses/78f19da06e8cfd0f2df163ebab3aef31357234f5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mfateev"}}