{"action":"created","comment":{"url":"https://api.github.com/repos/che-incubator/chectl/pulls/comments/283666257","pull_request_review_id":237075066,"id":283666257,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4MzY2NjI1Nw==","diff_hunk":"@@ -76,6 +77,37 @@ EXAMPLES\n \n _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v0.1.0/src/commands/autocomplete/index.ts)_\n \n+## `chectl devfile:generate`\n+\n+generate and print a devfile to stdout given some Kubernetes resources and other Che workspaces features (project, language-support, commands etc...)\n+\n+```\n+USAGE\n+  $ chectl devfile:generate\n+\n+OPTIONS\n+  -h, --help                 show CLI help\n+  --command=command          Command to include in the workspace\n+  --dockerimage=dockerimage  dockerimage component to include in the Devfile\n+  --editor=editor            Specify the Che editor component. Currently supported editors: theia-next,theia-1.0.0\n+  --git-repo=git-repo        Source code git repository to include in the workspace\n+\n+  --language=language        Add support for a particular language. Currently supported languages:\n+                             java,typescript,go,python,c#\n+\n+  --name=name                Workspace name\n+\n+  --namespace=namespace      Kubernetes namespace where the resources are defined\n+\n+  --plugin=plugin            Che plugin to include in the workspace. The format is JSON. For example this is a valid Che\n+                             Plugin specification: {\"type\": \"TheEndpointName.ChePlugin\", \"alias\": \"java-ls\", \"id\":\n+                             \"redhat/java/0.38.0\"}\n+\n+  --selector=selector        label selector to filter the Kubernetes resources","path":"README.md","position":38,"original_position":38,"commit_id":"d19b1dbf6d3dc38891bf12283b1128807e992c5b","original_commit_id":"d19b1dbf6d3dc38891bf12283b1128807e992c5b","user":{"login":"sleshchenko","id":5887312,"node_id":"MDQ6VXNlcjU4ODczMTI=","avatar_url":"https://avatars0.githubusercontent.com/u/5887312?v=4","gravatar_id":"","url":"https://api.github.com/users/sleshchenko","html_url":"https://github.com/sleshchenko","followers_url":"https://api.github.com/users/sleshchenko/followers","following_url":"https://api.github.com/users/sleshchenko/following{/other_user}","gists_url":"https://api.github.com/users/sleshchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/sleshchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sleshchenko/subscriptions","organizations_url":"https://api.github.com/users/sleshchenko/orgs","repos_url":"https://api.github.com/users/sleshchenko/repos","events_url":"https://api.github.com/users/sleshchenko/events{/privacy}","received_events_url":"https://api.github.com/users/sleshchenko/received_events","type":"User","site_admin":false},"body":"Maybe it makes sense to add example to make it clear that selector has format `key=value`:\r\n`--selector=app.kubernetes.io/name=my-app`","created_at":"2019-05-14T07:47:43Z","updated_at":"2019-05-14T07:49:31Z","html_url":"https://github.com/che-incubator/chectl/pull/84#discussion_r283666257","pull_request_url":"https://api.github.com/repos/che-incubator/chectl/pulls/84","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/che-incubator/chectl/pulls/comments/283666257"},"html":{"href":"https://github.com/che-incubator/chectl/pull/84#discussion_r283666257"},"pull_request":{"href":"https://api.github.com/repos/che-incubator/chectl/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/che-incubator/chectl/pulls/84","id":271340714,"node_id":"MDExOlB1bGxSZXF1ZXN0MjcxMzQwNzE0","html_url":"https://github.com/che-incubator/chectl/pull/84","diff_url":"https://github.com/che-incubator/chectl/pull/84.diff","patch_url":"https://github.com/che-incubator/chectl/pull/84.patch","issue_url":"https://api.github.com/repos/che-incubator/chectl/issues/84","number":84,"state":"open","locked":false,"title":"Add command devfile:generate","user":{"login":"l0rd","id":606959,"node_id":"MDQ6VXNlcjYwNjk1OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/606959?v=4","gravatar_id":"","url":"https://api.github.com/users/l0rd","html_url":"https://github.com/l0rd","followers_url":"https://api.github.com/users/l0rd/followers","following_url":"https://api.github.com/users/l0rd/following{/other_user}","gists_url":"https://api.github.com/users/l0rd/gists{/gist_id}","starred_url":"https://api.github.com/users/l0rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l0rd/subscriptions","organizations_url":"https://api.github.com/users/l0rd/orgs","repos_url":"https://api.github.com/users/l0rd/repos","events_url":"https://api.github.com/users/l0rd/events{/privacy}","received_events_url":"https://api.github.com/users/l0rd/received_events","type":"User","site_admin":false},"body":"Add command `devfile:generate` as described in #81:\r\n\r\n```\r\nUSAGE\r\n  $ chectl devfile:generate\r\n\r\nOPTIONS\r\n  -h, --help             show CLI help\r\n  --command=command      command to include in the workspace\r\n  --language=language    add support for a particular language. Currently supported languages: java,typescript,go,python,c#\r\n  --namespace=namespace  Kubernetes namespace where the resources are defined\r\n  --plugin=plugin        Che plugin to include in the workspace\r\n  --project=project      source code project to include in the workspace\r\n  --selector=selector    label selector to filter the Kubernetes resources\r\n``` \r\n\r\nExample of usage:\r\n\r\n```bash\r\nchectl devfile:generate \\\r\n           --selector=\"app=guestbook\" \\\r\n           --language=java \\\r\n           --project='{\"name\": \"guestbook\", \"source\": \"https://github.com/kubernetes/examples.git\"}'\r\n```","created_at":"2019-04-17T14:46:39Z","updated_at":"2019-05-14T07:49:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edf60d16f6365b9bc346656a457cdc47e812f826","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/che-incubator/chectl/pulls/84/commits","review_comments_url":"https://api.github.com/repos/che-incubator/chectl/pulls/84/comments","review_comment_url":"https://api.github.com/repos/che-incubator/chectl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/che-incubator/chectl/issues/84/comments","statuses_url":"https://api.github.com/repos/che-incubator/chectl/statuses/d19b1dbf6d3dc38891bf12283b1128807e992c5b","head":{"label":"l0rd:start-wksp-from","ref":"start-wksp-from","sha":"d19b1dbf6d3dc38891bf12283b1128807e992c5b","user":{"login":"l0rd","id":606959,"node_id":"MDQ6VXNlcjYwNjk1OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/606959?v=4","gravatar_id":"","url":"https://api.github.com/users/l0rd","html_url":"https://github.com/l0rd","followers_url":"https://api.github.com/users/l0rd/followers","following_url":"https://api.github.com/users/l0rd/following{/other_user}","gists_url":"https://api.github.com/users/l0rd/gists{/gist_id}","starred_url":"https://api.github.com/users/l0rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l0rd/subscriptions","organizations_url":"https://api.github.com/users/l0rd/orgs","repos_url":"https://api.github.com/users/l0rd/repos","events_url":"https://api.github.com/users/l0rd/events{/privacy}","received_events_url":"https://api.github.com/users/l0rd/received_events","type":"User","site_admin":false},"repo":{"id":161161821,"node_id":"MDEwOlJlcG9zaXRvcnkxNjExNjE4MjE=","name":"chectl","full_name":"l0rd/chectl","private":false,"owner":{"login":"l0rd","id":606959,"node_id":"MDQ6VXNlcjYwNjk1OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/606959?v=4","gravatar_id":"","url":"https://api.github.com/users/l0rd","html_url":"https://github.com/l0rd","followers_url":"https://api.github.com/users/l0rd/followers","following_url":"https://api.github.com/users/l0rd/following{/other_user}","gists_url":"https://api.github.com/users/l0rd/gists{/gist_id}","starred_url":"https://api.github.com/users/l0rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l0rd/subscriptions","organizations_url":"https://api.github.com/users/l0rd/orgs","repos_url":"https://api.github.com/users/l0rd/repos","events_url":"https://api.github.com/users/l0rd/events{/privacy}","received_events_url":"https://api.github.com/users/l0rd/received_events","type":"User","site_admin":false},"html_url":"https://github.com/l0rd/chectl","description":"CLI to manage Eclipse Che server and workspaces","fork":true,"url":"https://api.github.com/repos/l0rd/chectl","forks_url":"https://api.github.com/repos/l0rd/chectl/forks","keys_url":"https://api.github.com/repos/l0rd/chectl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/l0rd/chectl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/l0rd/chectl/teams","hooks_url":"https://api.github.com/repos/l0rd/chectl/hooks","issue_events_url":"https://api.github.com/repos/l0rd/chectl/issues/events{/number}","events_url":"https://api.github.com/repos/l0rd/chectl/events","assignees_url":"https://api.github.com/repos/l0rd/chectl/assignees{/user}","branches_url":"https://api.github.com/repos/l0rd/chectl/branches{/branch}","tags_url":"https://api.github.com/repos/l0rd/chectl/tags","blobs_url":"https://api.github.com/repos/l0rd/chectl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/l0rd/chectl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/l0rd/chectl/git/refs{/sha}","trees_url":"https://api.github.com/repos/l0rd/chectl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/l0rd/chectl/statuses/{sha}","languages_url":"https://api.github.com/repos/l0rd/chectl/languages","stargazers_url":"https://api.github.com/repos/l0rd/chectl/stargazers","contributors_url":"https://api.github.com/repos/l0rd/chectl/contributors","subscribers_url":"https://api.github.com/repos/l0rd/chectl/subscribers","subscription_url":"https://api.github.com/repos/l0rd/chectl/subscription","commits_url":"https://api.github.com/repos/l0rd/chectl/commits{/sha}","git_commits_url":"https://api.github.com/repos/l0rd/chectl/git/commits{/sha}","comments_url":"https://api.github.com/repos/l0rd/chectl/comments{/number}","issue_comment_url":"https://api.github.com/repos/l0rd/chectl/issues/comments{/number}","contents_url":"https://api.github.com/repos/l0rd/chectl/contents/{+path}","compare_url":"https://api.github.com/repos/l0rd/chectl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/l0rd/chectl/merges","archive_url":"https://api.github.com/repos/l0rd/chectl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/l0rd/chectl/downloads","issues_url":"https://api.github.com/repos/l0rd/chectl/issues{/number}","pulls_url":"https://api.github.com/repos/l0rd/chectl/pulls{/number}","milestones_url":"https://api.github.com/repos/l0rd/chectl/milestones{/number}","notifications_url":"https://api.github.com/repos/l0rd/chectl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/l0rd/chectl/labels{/name}","releases_url":"https://api.github.com/repos/l0rd/chectl/releases{/id}","deployments_url":"https://api.github.com/repos/l0rd/chectl/deployments","created_at":"2018-12-10T11:06:00Z","updated_at":"2018-12-11T14:01:20Z","pushed_at":"2019-05-14T01:25:39Z","git_url":"git://github.com/l0rd/chectl.git","ssh_url":"git@github.com:l0rd/chectl.git","clone_url":"https://github.com/l0rd/chectl.git","svn_url":"https://github.com/l0rd/chectl","homepage":null,"size":420,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"epl-2.0","name":"Eclipse Public License 2.0","spdx_id":"EPL-2.0","url":"https://api.github.com/licenses/epl-2.0","node_id":"MDc6TGljZW5zZTMy"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"che-incubator:master","ref":"master","sha":"e6a6b561db55e118c7fe660256d1c7e9929e2893","user":{"login":"che-incubator","id":45756839,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NzU2ODM5","avatar_url":"https://avatars0.githubusercontent.com/u/45756839?v=4","gravatar_id":"","url":"https://api.github.com/users/che-incubator","html_url":"https://github.com/che-incubator","followers_url":"https://api.github.com/users/che-incubator/followers","following_url":"https://api.github.com/users/che-incubator/following{/other_user}","gists_url":"https://api.github.com/users/che-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/che-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/che-incubator/subscriptions","organizations_url":"https://api.github.com/users/che-incubator/orgs","repos_url":"https://api.github.com/users/che-incubator/repos","events_url":"https://api.github.com/users/che-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/che-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":158409601,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg0MDk2MDE=","name":"chectl","full_name":"che-incubator/chectl","private":false,"owner":{"login":"che-incubator","id":45756839,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NzU2ODM5","avatar_url":"https://avatars0.githubusercontent.com/u/45756839?v=4","gravatar_id":"","url":"https://api.github.com/users/che-incubator","html_url":"https://github.com/che-incubator","followers_url":"https://api.github.com/users/che-incubator/followers","following_url":"https://api.github.com/users/che-incubator/following{/other_user}","gists_url":"https://api.github.com/users/che-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/che-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/che-incubator/subscriptions","organizations_url":"https://api.github.com/users/che-incubator/orgs","repos_url":"https://api.github.com/users/che-incubator/repos","events_url":"https://api.github.com/users/che-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/che-incubator/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/che-incubator/chectl","description":"CLI to manage Eclipse Che server and workspaces","fork":false,"url":"https://api.github.com/repos/che-incubator/chectl","forks_url":"https://api.github.com/repos/che-incubator/chectl/forks","keys_url":"https://api.github.com/repos/che-incubator/chectl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/che-incubator/chectl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/che-incubator/chectl/teams","hooks_url":"https://api.github.com/repos/che-incubator/chectl/hooks","issue_events_url":"https://api.github.com/repos/che-incubator/chectl/issues/events{/number}","events_url":"https://api.github.com/repos/che-incubator/chectl/events","assignees_url":"https://api.github.com/repos/che-incubator/chectl/assignees{/user}","branches_url":"https://api.github.com/repos/che-incubator/chectl/branches{/branch}","tags_url":"https://api.github.com/repos/che-incubator/chectl/tags","blobs_url":"https://api.github.com/repos/che-incubator/chectl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/che-incubator/chectl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/che-incubator/chectl/git/refs{/sha}","trees_url":"https://api.github.com/repos/che-incubator/chectl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/che-incubator/chectl/statuses/{sha}","languages_url":"https://api.github.com/repos/che-incubator/chectl/languages","stargazers_url":"https://api.github.com/repos/che-incubator/chectl/stargazers","contributors_url":"https://api.github.com/repos/che-incubator/chectl/contributors","subscribers_url":"https://api.github.com/repos/che-incubator/chectl/subscribers","subscription_url":"https://api.github.com/repos/che-incubator/chectl/subscription","commits_url":"https://api.github.com/repos/che-incubator/chectl/commits{/sha}","git_commits_url":"https://api.github.com/repos/che-incubator/chectl/git/commits{/sha}","comments_url":"https://api.github.com/repos/che-incubator/chectl/comments{/number}","issue_comment_url":"https://api.github.com/repos/che-incubator/chectl/issues/comments{/number}","contents_url":"https://api.github.com/repos/che-incubator/chectl/contents/{+path}","compare_url":"https://api.github.com/repos/che-incubator/chectl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/che-incubator/chectl/merges","archive_url":"https://api.github.com/repos/che-incubator/chectl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/che-incubator/chectl/downloads","issues_url":"https://api.github.com/repos/che-incubator/chectl/issues{/number}","pulls_url":"https://api.github.com/repos/che-incubator/chectl/pulls{/number}","milestones_url":"https://api.github.com/repos/che-incubator/chectl/milestones{/number}","notifications_url":"https://api.github.com/repos/che-incubator/chectl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/che-incubator/chectl/labels{/name}","releases_url":"https://api.github.com/repos/che-incubator/chectl/releases{/id}","deployments_url":"https://api.github.com/repos/che-incubator/chectl/deployments","created_at":"2018-11-20T15:17:43Z","updated_at":"2019-05-13T15:03:15Z","pushed_at":"2019-05-14T07:19:19Z","git_url":"git://github.com/che-incubator/chectl.git","ssh_url":"git@github.com:che-incubator/chectl.git","clone_url":"https://github.com/che-incubator/chectl.git","svn_url":"https://github.com/che-incubator/chectl","homepage":null,"size":381,"stargazers_count":8,"watchers_count":8,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":38,"license":{"key":"epl-2.0","name":"Eclipse Public License 2.0","spdx_id":"EPL-2.0","url":"https://api.github.com/licenses/epl-2.0","node_id":"MDc6TGljZW5zZTMy"},"forks":9,"open_issues":38,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/che-incubator/chectl/pulls/84"},"html":{"href":"https://github.com/che-incubator/chectl/pull/84"},"issue":{"href":"https://api.github.com/repos/che-incubator/chectl/issues/84"},"comments":{"href":"https://api.github.com/repos/che-incubator/chectl/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/che-incubator/chectl/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/che-incubator/chectl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/che-incubator/chectl/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/che-incubator/chectl/statuses/d19b1dbf6d3dc38891bf12283b1128807e992c5b"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sleshchenko"}}