Skip to content

Commit

Permalink
add --command-token to access private repo on github
Browse files Browse the repository at this point in the history
  • Loading branch information
shihyuho committed Sep 4, 2018
1 parent f82803f commit f767ef4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,16 @@ $ helm run [flags] COMMAND [ARGS]

```sh
Flags:
--always-pull-image always pull image before running command
--command-owner string github owner of command (default "softleader")
--command-path-base string github path base of command (default "helm")
--command-repo string github repo of command (default "dockerfile")
--dos2unix convert FILE from DOS to Unix format (default true)
-h, --help help for helm
-l, --local command store on local storage, not on github
-m, --make executed via GNU make utility, not bash
--rm automatically remove the container when it exits (default true)
--always-pull-image always pull image before running command
--dos2unix convert FILE from DOS to Unix format (default true)
-h, --help help for helm
-l, --local command store on local storage, not on github
-m, --make executed via GNU make utility, not bash
--owner string github owner of command (default "softleader")
--path-base string github path base of command (default "helm")
--repo string github repository of command (default "dockerfile")
--rm automatically remove the container when it exits (default true)
--token string github access token of command for private repositories
```

### Command
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func main() {
f.BoolVarP(&runCmd.make, "make", "m", false, "executed via GNU make utility, not bash")
f.BoolVarP(&runCmd.dos2unix, "dos2unix", "", true, "convert FILE from DOS to Unix format")
f.StringVarP(&runCmd.owner, "owner", "", owner, "github owner of command")
f.StringVarP(&runCmd.repo, "repo", "", repo, "github repo of command")
f.StringVarP(&runCmd.repo, "repo", "", repo, "github repository of command")
f.StringVarP(&runCmd.pathBase, "path-base", "", pathBase, "github path base of command")
f.StringVarP(&runCmd.token, "token", "", "", "github access token of command")
f.StringVarP(&runCmd.token, "token", "", "", "github access token of command for private repositories")

if err := cmd.Execute(); err != nil {
os.Exit(1)
Expand Down

0 comments on commit f767ef4

Please sign in to comment.