Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
11407f0
test: run the CLI as a script, starting with `evaluate`
khvn26 Aug 1, 2026
e6a98d4
test: `evaluate`'s identity and environment-name cases become scripts
khvn26 Aug 1, 2026
d89ecfd
test: `organisation` becomes a script
khvn26 Aug 1, 2026
5a562ae
test: `config` becomes a script
khvn26 Aug 1, 2026
2a2c9ce
test: `api` and the --api-url flag become scripts
khvn26 Aug 1, 2026
8df2044
test: `segment` becomes a script
khvn26 Aug 1, 2026
14a1e7f
test: `flag list` becomes a script
khvn26 Aug 1, 2026
0528f17
test: `flag get` becomes a script
khvn26 Aug 1, 2026
1e7d5a7
test: `flag update`, enable/disable and priority become scripts
khvn26 Aug 1, 2026
7f15ec6
test: `flag`'s identity overrides become scripts
khvn26 Aug 1, 2026
84f99b1
test: `flag reorder`, `flag delete` and the usage lines become scripts
khvn26 Aug 1, 2026
f699270
test: `feature` becomes a script
khvn26 Aug 1, 2026
9e46497
test: `environment` becomes a script
khvn26 Aug 1, 2026
2124874
test: `project` becomes a script
khvn26 Aug 1, 2026
44d5205
test: the cross-cutting cases become scripts
khvn26 Aug 1, 2026
1dbb67b
test: the credential-precedence cases become scripts
khvn26 Aug 1, 2026
c1383eb
test: `init` without a terminal becomes a script
khvn26 Aug 1, 2026
f522fff
fix: fall back to the numbered picker when stderr is not a terminal
khvn26 Aug 1, 2026
145a128
test: `init`'s interactive cases become scripts
khvn26 Aug 1, 2026
a01adb7
test: give the fake instance a file of its own
khvn26 Aug 1, 2026
47aeb49
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 1, 2026
9ea3375
test: keep the script goldens byte for byte, on every platform
khvn26 Aug 1, 2026
36ff44f
test: check the script goldens out with LF everywhere
khvn26 Aug 1, 2026
73f2608
test: drop the doc comments duplicated by the file split
khvn26 Aug 1, 2026
5d455c2
test: give flagUpdateEnv back its own doc comment
khvn26 Aug 1, 2026
23ba6aa
test: let withSegmentOverride take the lock, like its neighbours
khvn26 Aug 1, 2026
9bd8b36
test: skip directories when scanning the scripts
khvn26 Aug 1, 2026
969142e
test: say which arguments a fake fixture setting wanted
khvn26 Aug 1, 2026
0f55f60
test: prove the declined confirmation deleted nothing
khvn26 Aug 1, 2026
adc02f3
test: name the whole credential variable, not its prefix
khvn26 Aug 1, 2026
03e667a
test: let the stream-separation case set up its own instance
khvn26 Aug 1, 2026
32647f6
test: give the org-alias case the one organisation it describes
khvn26 Aug 1, 2026
2a74ebf
test: drop the comments the split duplicated in cmd_test.go too
khvn26 Aug 1, 2026
1e9930a
test: authorisation, in the prose at least
khvn26 Aug 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
internal/cmd/testdata/script/*.txtar text eol=lf
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ repos:
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: ^internal/cmd/testdata/script/
- id: end-of-file-fixer
exclude: ^internal/cmd/testdata/script/
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ require (
github.com/fatih/color v1.19.0
github.com/itchyny/gojq v0.12.19
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
github.com/rogpeppe/go-internal v1.15.0
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.9
github.com/zalando/go-keyring v0.2.8
Expand Down Expand Up @@ -53,4 +54,5 @@ require (
golang.org/x/net v0.43.0 // indirect
golang.org/x/sys v0.47.0 // indirect
golang.org/x/text v0.28.0 // indirect
golang.org/x/tools v0.35.0 // indirect
)
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/rogpeppe/go-internal v1.15.0 h1:D0RCU5rMAp+SpgkiNdrjfJ+LX4J1M32V2NeCY7EJ6hc=
github.com/rogpeppe/go-internal v1.15.0/go.mod h1:DrUVZyrJU+txYW5/1kwtXQSMFio52ZOxX7yM1VHvnxs=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU=
github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=
Expand Down Expand Up @@ -130,6 +132,8 @@ golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE=
golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg=
golang.org/x/tools v0.35.0 h1:mBffYraMEf7aa0sB+NuKnuCy8qI/9Bughn8dC2Gu5r0=
golang.org/x/tools v0.35.0/go.mod h1:NKdj5HkL/73byiZSJjqJgKn3ep7KjFkBOkR/Hps3VPw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
Loading