From edbeb6c38150578a127e90b5854ff6a4e87e8153 Mon Sep 17 00:00:00 2001 From: Alexander Baryshnikov Date: Sat, 25 Jul 2020 12:30:28 +0800 Subject: [PATCH] cli: remove private flag --- .github/workflows/go.yml | 4 ++-- cmd/cgi-ctl/cmd_create.go | 1 - cmd/cgi-ctl/cmd_init_bare.go | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cacafea..1ee964e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 diff --git a/cmd/cgi-ctl/cmd_create.go b/cmd/cgi-ctl/cmd_create.go index 2307c55..3258a2e 100644 --- a/cmd/cgi-ctl/cmd_create.go +++ b/cmd/cgi-ctl/cmd_create.go @@ -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) diff --git a/cmd/cgi-ctl/cmd_init_bare.go b/cmd/cgi-ctl/cmd_init_bare.go index 55de874..30a833f 100644 --- a/cmd/cgi-ctl/cmd_init_bare.go +++ b/cmd/cgi-ctl/cmd_init_bare.go @@ -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"` } @@ -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)