Skip to content

Commit

Permalink
cli: remove private flag
Browse files Browse the repository at this point in the history
  • Loading branch information
reddec committed Jul 25, 2020
1 parent c8151e8 commit edbeb6c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: '^1.14'
id: go
- name: Install deps
run: sudo apt install -y python3 pandoc
Expand Down
1 change: 0 additions & 1 deletion cmd/cgi-ctl/cmd_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func (cmd *create) Execute(args []string) error {

info.Manifest.Name = filepath.Base(wd)
info.Manifest.Description = cmd.Description
info.Manifest.Public = cmd.Public

log.Println("updating manifest...")
info, err = cmd.Lambdas().Update(ctx, token, info.UID, info.Manifest)
Expand Down
2 changes: 0 additions & 2 deletions cmd/cgi-ctl/cmd_init_bare.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
type Bare struct {
Git bool `long:"git" env:"GIT" description:"Enable Git"`
Description string `short:"d" long:"description" env:"DESCRIPTION" description:"Description" default:"Bare project"`
Private bool `short:"P" long:"private" env:"PRIVATE" description:"Mark as private"`
TimeLimit time.Duration `short:"t" long:"time-limit" env:"TIME_LIMIT" description:"Time limit for execution" default:"10s"`
MaxPayload int64 `short:"p" long:"max-payload" env:"MAX_PAYLOAD" description:"Maximum payload" default:"8192"`
}
Expand All @@ -34,7 +33,6 @@ func (b Bare) Execute(args []string) error {
},
TimeLimit: types.JsonDuration(b.TimeLimit),
MaximumPayload: b.MaxPayload,
Public: !b.Private,
}

err = def.SaveAs(internal_app.ManifestFile)
Expand Down

0 comments on commit edbeb6c

Please sign in to comment.