Skip to content

Commit b585b8a

Browse files
authored
Updates for 0.1.4 Release (#121)
1 parent 1de22cd commit b585b8a

File tree

9 files changed

+129
-56
lines changed

9 files changed

+129
-56
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
env:
1616
DOCKER_CLI_EXPERIMENTAL: "enabled"
17+
BUILD_SHA: ${{ github.sha }}
18+
BUILD_DATE: $(date)
19+
BUILT_BY: "github"
1720
steps:
1821
-
1922
name: Checkout

.goreleaser.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ env:
55
builds:
66
-
77
binary: tfx
8-
ldflags: -s -w -X version.Version={{ .Version }}
8+
ldflags:
9+
- -s -w -X version.Version={{ .Version }}
10+
- -s -w -X github.com/straubt1/tfx/version.Build={{ .Env.BUILD_SHA}}
11+
- -s -w -X github.com/straubt1/tfx/version.Date={{ .Env.BUILD_DATE}}
12+
- -s -w -X github.com/straubt1/tfx/version.BuiltBy={{ .Env.BUILT_BY}}
13+
914
goos:
1015
- linux
1116
- darwin

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [v0.1.4] - 2024.10.29
9+
10+
**Added**
11+
12+
* Added `tfx workspace run cancel` to cancel the latest run.
13+
14+
**Changed**
15+
16+
* Updated all go packages to latest
17+
* Updated documentation example errors
18+
* Fixed BuiltBy build tag for releases
19+
820
## [v0.1.3] - 2024.09.20
921

1022
**Added**

Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
# For local development only
22
build:
3-
go build -o bin/main main.go
4-
go build -v \
5-
-ldflags="-X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.Version=0.1.3' \
6-
-X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.Prerelease=alpha' \
7-
-X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.Build=local' \
8-
-X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.BuiltBy=$(shell git config --global --get github.user)' \
9-
-X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.Date=$(shell date)'"
10-
rm -rf bin/
3+
BUILD_SHA="local" BUILD_DATE=$(date) BUILT_BY="me" \
4+
goreleaser release --snapshot --clean
115

126
update:
137
go get -u

cmd/workspace_run.go

Lines changed: 66 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var (
3636
Long: "Work with Runs of a TFx Workspace.",
3737
}
3838

39-
// `tfx workspace list` command
39+
// `tfx workspace run list` command
4040
runListCmd = &cobra.Command{
4141
Use: "list",
4242
Short: "List Runs",
@@ -49,7 +49,7 @@ var (
4949
},
5050
}
5151

52-
// `tfx workspace create` command
52+
// `tfx workspace run create` command
5353
runCreateCmd = &cobra.Command{
5454
Use: "create",
5555
Short: "Create Run",
@@ -63,7 +63,7 @@ var (
6363
},
6464
}
6565

66-
// `tfx workspace show` command
66+
// `tfx workspace run show` command
6767
runShowCmd = &cobra.Command{
6868
Use: "show",
6969
Short: "Show Run",
@@ -75,17 +75,29 @@ var (
7575
},
7676
}
7777

78-
// `tfx workspace discard` command
78+
// `tfx workspace run discard` command
7979
runDiscardCmd = &cobra.Command{
80-
Use: "discard",
81-
Short: "Discard Run",
82-
Long: "Discard Run for a TFx Workspace.",
80+
Use: "discard",
81+
Short: "Discard Run",
82+
Long: "Discard Run for a TFx Workspace.",
8383
RunE: func(cmd *cobra.Command, args []string) error {
8484
return runDiscard(
8585
getTfxClientContext(),
8686
*viperString("id"))
8787
},
8888
}
89+
90+
// `tfx workspace run cancel` command
91+
runCancelCmd = &cobra.Command{
92+
Use: "cancel",
93+
Short: "Cancel Run",
94+
Long: "Cancel Run for a TFx Workspace.",
95+
RunE: func(cmd *cobra.Command, args []string) error {
96+
return runCancel(
97+
getTfxClientContext(),
98+
*viperString("workspace-name"))
99+
},
100+
}
89101
)
90102

91103
func init() {
@@ -111,11 +123,17 @@ func init() {
111123
runDiscardCmd.Flags().StringP("id", "i", "", "Run Id (i.e. run-*)")
112124
runDiscardCmd.MarkFlagRequired("id")
113125

126+
// `tfx workspace run cancel` command
127+
runCancelCmd.Flags().StringP("workspace-name", "w", "", "Workspace name")
128+
runCancelCmd.MarkFlagRequired("w")
129+
// runDiscardCmd.Flags().StringP("id", "i", "", "Run Id (i.e. run-*)")
130+
114131
workspaceCmd.AddCommand(runCmd)
115132
runCmd.AddCommand(runListCmd)
116133
runCmd.AddCommand(runCreateCmd)
117134
runCmd.AddCommand(runShowCmd)
118135
runCmd.AddCommand(runDiscardCmd)
136+
runCmd.AddCommand(runCancelCmd)
119137
}
120138

121139
func workspaceRunListAll(c TfxClientContext, workspaceId string, maxItems int) ([]*tfe.Run, error) {
@@ -241,6 +259,31 @@ func runDiscard(c TfxClientContext, runId string) error {
241259
return nil
242260
}
243261

262+
func runCancel(c TfxClientContext, workspaceName string) error {
263+
o.AddMessageUserProvided("Cancel latest run for Workspace:", workspaceName)
264+
workspaceId, err := getWorkspaceId(c, workspaceName)
265+
if err != nil {
266+
return errors.Wrap(err, "unable to read workspace id")
267+
}
268+
269+
runId, err := getLatestRunId(c, workspaceId)
270+
if err != nil {
271+
return errors.Wrap(err, "failed to cancel run")
272+
}
273+
o.AddMessageUserProvided("Found latest Run:", runId)
274+
275+
err = c.Client.Runs.Cancel(c.Context, runId, tfe.RunCancelOptions{
276+
Comment: tfe.String("Canceled via TFx"),
277+
})
278+
if err != nil {
279+
return errors.Wrap(err, "failed to cancel run")
280+
}
281+
282+
o.AddDeferredMessageRead("Cancelled run id", runId)
283+
284+
return nil
285+
}
286+
244287
func getWorkspaceId(c TfxClientContext, workspaceName string) (string, error) {
245288
w, err := c.Client.Workspaces.Read(c.Context, c.OrganizationName, workspaceName)
246289
if err != nil {
@@ -249,3 +292,19 @@ func getWorkspaceId(c TfxClientContext, workspaceName string) (string, error) {
249292

250293
return w.ID, nil
251294
}
295+
296+
func getLatestRunId(c TfxClientContext, workspaceId string) (string, error) {
297+
// Get latest run
298+
runList, err := c.Client.Runs.List(c.Context, workspaceId, &tfe.RunListOptions{
299+
ListOptions: tfe.ListOptions{PageNumber: 1, PageSize: 1}})
300+
if err != nil {
301+
return "", errors.Wrap(err, "unable to read workspace runs")
302+
}
303+
if runList == nil {
304+
return "", errors.Wrap(err, "unable to read latest workspace run")
305+
}
306+
if len(runList.Items) != 1 {
307+
return "", errors.Wrap(err, "unable to read latest workspace run")
308+
}
309+
return runList.Items[0].ID, nil
310+
}

go.mod

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ go 1.23
55
toolchain go1.23.1
66

77
require (
8-
code.cloudfoundry.org/bytefmt v0.10.0
8+
code.cloudfoundry.org/bytefmt v0.16.0
99
github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de
1010
github.com/cavaliergopher/grab/v3 v3.0.1
1111
github.com/coreos/go-semver v0.3.1
12-
github.com/fatih/color v1.17.0
12+
github.com/fatih/color v1.18.0
1313
github.com/hashicorp/go-slug v0.16.0
14-
github.com/hashicorp/go-tfe v1.66.0
14+
github.com/hashicorp/go-tfe v1.70.0
1515
github.com/jedib0t/go-pretty v4.3.0+incompatible
16-
github.com/jedib0t/go-pretty/v6 v6.5.9
16+
github.com/jedib0t/go-pretty/v6 v6.6.1
1717
github.com/logrusorgru/aurora v2.0.3+incompatible
1818
github.com/mitchellh/go-homedir v1.1.0
1919
github.com/mmcdole/gofeed v1.3.0
@@ -40,9 +40,9 @@ require (
4040
github.com/sagikazarmark/locafero v0.6.0 // indirect
4141
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
4242
github.com/sourcegraph/conc v0.3.0 // indirect
43-
go.mongodb.org/mongo-driver v1.17.0 // indirect
43+
go.mongodb.org/mongo-driver v1.17.1 // indirect
4444
go.uber.org/multierr v1.11.0 // indirect
45-
golang.org/x/net v0.29.0 // indirect
45+
golang.org/x/net v0.30.0 // indirect
4646
golang.org/x/sync v0.8.0 // indirect
4747
)
4848

@@ -64,13 +64,13 @@ require (
6464
github.com/spf13/afero v1.11.0 // indirect
6565
github.com/spf13/cast v1.7.0 // indirect
6666
github.com/subosito/gotenv v1.6.0 // indirect
67-
github.com/tidwall/gjson v1.17.3 // indirect
67+
github.com/tidwall/gjson v1.18.0 // indirect
6868
github.com/tidwall/match v1.1.1 // indirect
6969
github.com/tidwall/pretty v1.2.1 // indirect
70-
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0
71-
golang.org/x/sys v0.25.0 // indirect
72-
golang.org/x/text v0.18.0 // indirect
73-
golang.org/x/time v0.6.0 // indirect
70+
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c
71+
golang.org/x/sys v0.26.0 // indirect
72+
golang.org/x/text v0.19.0 // indirect
73+
golang.org/x/time v0.7.0 // indirect
7474
gopkg.in/ini.v1 v1.67.0 // indirect
7575
gopkg.in/yaml.v3 v3.0.1 // indirect
7676
)

go.sum

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
code.cloudfoundry.org/bytefmt v0.10.0 h1:q/n3VEyTHSYIr+MTRIYxNMRutBilgv0gbFWZbXqWI60=
2-
code.cloudfoundry.org/bytefmt v0.10.0/go.mod h1:FQhPpsF//guTvK6ZnAC2JkVRZjl6s5ee0H90K2r3zxI=
1+
code.cloudfoundry.org/bytefmt v0.16.0 h1:MYcmMBZDIL6H3jVD1lu7Fn/gSI5I45wxat4cq3DwT9o=
2+
code.cloudfoundry.org/bytefmt v0.16.0/go.mod h1:1qOzTFyq3A3MhUgMRlDIcZNeoEN0nkXyE+TWWgwogAo=
33
github.com/PuerkitoBio/goquery v1.10.0 h1:6fiXdLuUvYs2OJSvNRqlNPoBm6YABE226xrbavY5Wv4=
44
github.com/PuerkitoBio/goquery v1.10.0/go.mod h1:TjZZl68Q3eGHNBA8CWaxAN7rOU1EbDz3CWuolcO5Yu4=
55
github.com/andybalholm/cascadia v1.3.2 h1:3Xi6Dw5lHF15JtdcmAHD3i1+T8plmv7BQ/nsViSLyss=
@@ -17,8 +17,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
1717
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1818
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
1919
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
20-
github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4=
21-
github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI=
20+
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
21+
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
2222
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
2323
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
2424
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
@@ -37,8 +37,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN
3737
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
3838
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
3939
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
40-
github.com/google/pprof v0.0.0-20240910150728-a0b0bb1d4134 h1:c5FlPPgxOn7kJz3VoPLkQYQXGBS3EklQ4Zfi57uOuqQ=
41-
github.com/google/pprof v0.0.0-20240910150728-a0b0bb1d4134/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144=
40+
github.com/google/pprof v0.0.0-20241023014458-598669927662 h1:SKMkD83p7FwUqKmBsPdLHF5dNyxq3jOWwu9w9UyH5vA=
41+
github.com/google/pprof v0.0.0-20241023014458-598669927662/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144=
4242
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
4343
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
4444
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
@@ -49,8 +49,8 @@ github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISH
4949
github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk=
5050
github.com/hashicorp/go-slug v0.16.0 h1:S/ko9fms1gf6305ktJNUKGxFmscZ+yWvAtsas0SYUyA=
5151
github.com/hashicorp/go-slug v0.16.0/go.mod h1:THWVTAXwJEinbsp4/bBRcmbaO5EYNLTqxbG4tZ3gCYQ=
52-
github.com/hashicorp/go-tfe v1.66.0 h1:nWqvk6OMkPGInBm7tuuwZAtWQ4LjXBD6pUZVeoZ7wn8=
53-
github.com/hashicorp/go-tfe v1.66.0/go.mod h1:JIgzD8EKkwAqFJdtmo0X2k1NUTrozyniKijL1nVkJgE=
52+
github.com/hashicorp/go-tfe v1.70.0 h1:R5a9Z+jdVz6eRWtSLsl1nw+5Qe/swunZcJgeKK5NQtQ=
53+
github.com/hashicorp/go-tfe v1.70.0/go.mod h1:2rOcdTxXwbWm0W7dCKjC3Ec8KQ+HhW165GiurXNshc4=
5454
github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8=
5555
github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
5656
github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY=
@@ -63,8 +63,8 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2
6363
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
6464
github.com/jedib0t/go-pretty v4.3.0+incompatible h1:CGs8AVhEKg/n9YbUenWmNStRW2PHJzaeDodcfvRAbIo=
6565
github.com/jedib0t/go-pretty v4.3.0+incompatible/go.mod h1:XemHduiw8R651AF9Pt4FwCTKeG3oo7hrHJAoznj9nag=
66-
github.com/jedib0t/go-pretty/v6 v6.5.9 h1:ACteMBRrrmm1gMsXe9PSTOClQ63IXDUt03H5U+UV8OU=
67-
github.com/jedib0t/go-pretty/v6 v6.5.9/go.mod h1:zbn98qrYlh95FIhwwsbIip0LYpwSG8SUOScs+v9/t0E=
66+
github.com/jedib0t/go-pretty/v6 v6.6.1 h1:iJ65Xjb680rHcikRj6DSIbzCex2huitmc7bDtxYVWyc=
67+
github.com/jedib0t/go-pretty/v6 v6.6.1/go.mod h1:zbn98qrYlh95FIhwwsbIip0LYpwSG8SUOScs+v9/t0E=
6868
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
6969
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
7070
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
@@ -143,8 +143,8 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8
143143
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
144144
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
145145
github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
146-
github.com/tidwall/gjson v1.17.3 h1:bwWLZU7icoKRG+C+0PNwIKC6FCJO/Q3p2pZvuP0jN94=
147-
github.com/tidwall/gjson v1.17.3/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
146+
github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY=
147+
github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
148148
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
149149
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
150150
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
@@ -153,23 +153,23 @@ github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhso
153153
github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY=
154154
github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28=
155155
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
156-
go.mongodb.org/mongo-driver v1.17.0 h1:Hp4q2MCjvY19ViwimTs00wHi7G4yzxh4/2+nTx8r40k=
157-
go.mongodb.org/mongo-driver v1.17.0/go.mod h1:wwWm/+BuOddhcq3n68LKRmgk2wXzmF6s0SFOa0GINL4=
156+
go.mongodb.org/mongo-driver v1.17.1 h1:Wic5cJIwJgSpBhe3lx3+/RybR5PiYRMpVFgO7cOHyIM=
157+
go.mongodb.org/mongo-driver v1.17.1/go.mod h1:wwWm/+BuOddhcq3n68LKRmgk2wXzmF6s0SFOa0GINL4=
158158
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
159159
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
160160
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
161161
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
162-
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk=
163-
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY=
162+
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c h1:7dEasQXItcW1xKJ2+gg5VOiBnqWrJc+rq0DPKyvvdbY=
163+
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c/go.mod h1:NQtJDoLvd6faHhE7m4T/1IY708gDefGGjR/iUW8yQQ8=
164164
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
165165
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
166166
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
167167
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
168168
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
169169
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
170170
golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns=
171-
golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo=
172-
golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0=
171+
golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4=
172+
golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU=
173173
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
174174
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
175175
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -184,8 +184,8 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc
184184
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
185185
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
186186
golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
187-
golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
188-
golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
187+
golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo=
188+
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
189189
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
190190
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
191191
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
@@ -195,16 +195,16 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
195195
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
196196
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
197197
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
198-
golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224=
199-
golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
200-
golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U=
201-
golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
198+
golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM=
199+
golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
200+
golang.org/x/time v0.7.0 h1:ntUhktv3OPE6TgYxXWv9vKvUSJyIFJlyohwbkEwPrKQ=
201+
golang.org/x/time v0.7.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
202202
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
203203
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
204204
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
205205
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
206-
golang.org/x/tools v0.25.0 h1:oFU9pkj/iJgs+0DT+VMHrx+oBKs/LJMV+Uvg78sl+fE=
207-
golang.org/x/tools v0.25.0/go.mod h1:/vtpO8WL1N9cQC3FN5zPqb//fRXskFHbLKk4OW1Q7rg=
206+
golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ=
207+
golang.org/x/tools v0.26.0/go.mod h1:TPVVj70c7JJ3WCazhD8OdXcZg/og+b9+tH/KxylGwH0=
208208
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
209209
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
210210
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

site/docs/commands/workspace_lock.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ General commands to manage Workspace Locks.
1010
Lock a given workspace by name, in a given organization.
1111

1212
```sh
13-
$ tfx workspace lock -w tfx-test-workspace-1
13+
$ tfx workspace lock -n tfx-test-workspace-1
1414
Using config file: /Users/tstraub/.tfx.hcl
1515
Lock Workspace in Organization: firefly
1616
tfx-test-workspace-1: Locked
@@ -40,7 +40,7 @@ tfx-test-workspace-06: Locked
4040
Unlock a given workspace by name, in a given organization.
4141

4242
```sh
43-
$ tfx git:(tt-additional-refactor) ✗ tfx workspace unlock -w tfx-test-workspace-1
43+
$ tfx git:(tt-additional-refactor) ✗ tfx workspace unlock -n tfx-test-workspace-1
4444
Using config file: /Users/tstraub/.tfx.hcl
4545
Unlock Workspace in Organization: firefly
4646
tfx-test-workspace-1: Unlocked

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package version
22

33
var (
4-
Version = "0.1.3"
4+
Version = "0.1.4"
55
Prerelease = ""
66
Build = ""
77
Date = ""

0 commit comments

Comments
 (0)