{"action":"created","issue":{"url":"https://api.github.com/repos/opencontainers/image-spec/issues/271","repository_url":"https://api.github.com/repos/opencontainers/image-spec","labels_url":"https://api.github.com/repos/opencontainers/image-spec/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/opencontainers/image-spec/issues/271/comments","events_url":"https://api.github.com/repos/opencontainers/image-spec/issues/271/events","html_url":"https://github.com/opencontainers/image-spec/issues/271","id":175447331,"number":271,"title":"Add yaml config file to image tool command usage","user":{"login":"xiekeyang","id":9944031,"avatar_url":"https://avatars.githubusercontent.com/u/9944031?v=3","gravatar_id":"","url":"https://api.github.com/users/xiekeyang","html_url":"https://github.com/xiekeyang","followers_url":"https://api.github.com/users/xiekeyang/followers","following_url":"https://api.github.com/users/xiekeyang/following{/other_user}","gists_url":"https://api.github.com/users/xiekeyang/gists{/gist_id}","starred_url":"https://api.github.com/users/xiekeyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiekeyang/subscriptions","organizations_url":"https://api.github.com/users/xiekeyang/orgs","repos_url":"https://api.github.com/users/xiekeyang/repos","events_url":"https://api.github.com/users/xiekeyang/events{/privacy}","received_events_url":"https://api.github.com/users/xiekeyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-07T08:50:53Z","updated_at":"2016-09-07T11:53:10Z","closed_at":null,"body":"@opencontainers/image-spec-maintainers \r\nNow we are appending more and more flags to image tool commend. For conveniently using, it had better to introduce a yaml config file, like that:\r\n\r\n```go\r\ncmd.PersistentFlags().StringVar(&cfgFile, \"config\", \"\", \"config file (default is $HOME/.cobra.yaml)\")\r\n```\r\n\r\nIn which user can fulfill his all flags.\r\nIf you allow my idea, I'd like to take on it. Thanks a lot!\r\n\r\n/cc @philips @stevvooe @s-urbaniak @runcom @wking "},"comment":{"url":"https://api.github.com/repos/opencontainers/image-spec/issues/comments/245257100","html_url":"https://github.com/opencontainers/image-spec/issues/271#issuecomment-245257100","issue_url":"https://api.github.com/repos/opencontainers/image-spec/issues/271","id":245257100,"user":{"login":"runcom","id":849915,"avatar_url":"https://avatars.githubusercontent.com/u/849915?v=3","gravatar_id":"","url":"https://api.github.com/users/runcom","html_url":"https://github.com/runcom","followers_url":"https://api.github.com/users/runcom/followers","following_url":"https://api.github.com/users/runcom/following{/other_user}","gists_url":"https://api.github.com/users/runcom/gists{/gist_id}","starred_url":"https://api.github.com/users/runcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runcom/subscriptions","organizations_url":"https://api.github.com/users/runcom/orgs","repos_url":"https://api.github.com/users/runcom/repos","events_url":"https://api.github.com/users/runcom/events{/privacy}","received_events_url":"https://api.github.com/users/runcom/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T11:53:10Z","updated_at":"2016-09-07T11:53:10Z","body":"> What do you mean by \"duplicates\"?\r\n\r\nI mean having an env var for a command line option.\r\n\r\nI don't see any gain in having env vars because, as explained early, one can have a really long list of references (for instance) to use with $REFS and thus having still a long line to type paste.\r\n\r\n> Now we are appending more and more flags to image tool commend. For conveniently using, it had better to introduce a yaml config file, like that:\r\n\r\nThe op here probably refers to the fact the `--ref` is a string slice now and one can specify it multiple times (no new flags have been added recently afaict). Having this as env vars seems the same to me (can you make me an example on how it would be different with env vars? even splitting REFS=$refs_list; oci-image-tool validate imagepath has a long line, the first one)"}}
{"actor":{"display_login":"runcom"}}