Skip to content

Commit 8d7bef9

Browse files
committed
bumps
1 parent 0fc464d commit 8d7bef9

File tree

4 files changed

+46
-34
lines changed

4 files changed

+46
-34
lines changed

.github/workflows/pushes.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ permissions:
1616
on:
1717
push:
1818
branches-ignore:
19-
- 'exp'
20-
- 'exp/*'
21-
- 'exp-*'
22-
- 'exp_*'
23-
- 'wip'
24-
- 'wip/*'
25-
- 'wip-*'
26-
- 'wip_*'
19+
- "exp"
20+
- "exp/*"
21+
- "exp-*"
22+
- "exp_*"
23+
- "wip"
24+
- "wip/*"
25+
- "wip-*"
26+
- "wip_*"
2727
pull_request:
2828

2929
jobs:
@@ -38,13 +38,13 @@ jobs:
3838
# The canonical entry is the only one where we run vet/lint/style checks.
3939
# `experimental: true` entries do not cause the tests to fail.
4040
include:
41-
- go: 'stable'
41+
- go: "stable"
4242
os: ubuntu-latest
4343
canonical: true
44-
- go: 'stable'
44+
- go: "stable"
4545
os: windows-latest
4646
canonical: false
47-
- go: 'stable'
47+
- go: "stable"
4848
os: macos-latest
4949
canonical: false
5050

.github/workflows/release.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
# From 2.7.6 onwards, we use the vX.Y.Z tag naming pattern.
77
# Before then, we used non-version tags.
88
# Going forward, for new releases, we only need to support v.
9-
- 'v[0-9]*'
9+
- "v[0-9]*"
1010

1111
permissions:
1212
# Control the GITHUB_TOKEN permissions; GitHub's docs on which permission scopes control what are a little lacking.
@@ -21,7 +21,6 @@ jobs:
2121
goreleaser:
2222
runs-on: ubuntu-latest
2323
steps:
24-
2524
- name: Checkout
2625
uses: actions/checkout@v4
2726
with:
@@ -36,7 +35,7 @@ jobs:
3635
- name: Set up Go
3736
uses: actions/setup-go@v5
3837
with:
39-
go-version: '1.21'
38+
go-version: "1.21"
4039
check-latest: true
4140

4241
- name: Install cosign

cmd/reissueaccount.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func createReissueAccountCmd() *cobra.Command {
3131
Example: `nsc reissue account`,
3232
Args: MaxArgs(0),
3333
SilenceUsage: false,
34+
Hidden: true,
3435
RunE: func(cmd *cobra.Command, args []string) error {
3536
if err := RunMaybeStorelessAction(cmd, args, &params); err != nil {
3637
return err
@@ -82,6 +83,18 @@ func (p *reissueAccount) Run(ctx ActionCtx) (store.Status, error) {
8283
ks := ctx.StoreCtx().KeyStore
8384
accounts, err := s.ListSubContainers(store.Accounts)
8485

86+
// maybe filter to the account name provided
87+
if ctx.CurrentCmd().Flags().Changed("account") {
88+
var buf []string
89+
name := ctx.StoreCtx().Account.Name
90+
for _, n := range accounts {
91+
if n == name {
92+
buf = append(buf, n)
93+
}
94+
}
95+
accounts = buf
96+
}
97+
8598
if err != nil {
8699
return nil, err
87100
}

dependencies.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
This file lists the dependencies used in this repository.
44

5-
| Dependency | License |
6-
|----------------------------------------------------------|-----------------------------------------|
7-
| go | BSD 3-Clause "New" or "Revised" License |
8-
| github.com/blang/semver | MIT |
9-
| github.com/briandowns/spinner | Apache-2.0 |
10-
| github.com/dustin/go-humanize | MIT |
11-
| github.com/mitchellh/go-homedir | MIT |
12-
| github.com/nats-io/cliprompts/v2 | Apache-2.0 |
13-
| github.com/nats-io/jsm.go | Apache-2.0 |
14-
| github.com/nats-io/jwt/v2 | Apache-2.0 |
15-
| github.com/nats-io/nats-server/v2 | Apache-2.0 |
16-
| github.com/nats-io/nats.go | Apache-2.0 |
17-
| github.com/nats-io/nkeys | Apache-2.0 |
18-
| github.com/nats-io/nuid | Apache-2.0 |
19-
| github.com/rhysd/go-github-selfupdate/selfupdate | MIT |
20-
| github.com/spf13/cobra | Apache-2.0 |
21-
| github.com/spf13/pflag | BSD-3-Clause |
22-
| github.com/stretchr/testify | MIT |
23-
| github.com/xlab/tablewriter | Apache-2.0 |
24-
| golang.org/x/text | BSD-3-Clause |
5+
| Dependency | License |
6+
| ------------------------------------------------ | --------------------------------------- |
7+
| go | BSD 3-Clause "New" or "Revised" License |
8+
| github.com/blang/semver | MIT |
9+
| github.com/briandowns/spinner | Apache-2.0 |
10+
| github.com/dustin/go-humanize | MIT |
11+
| github.com/mitchellh/go-homedir | MIT |
12+
| github.com/nats-io/cliprompts/v2 | Apache-2.0 |
13+
| github.com/nats-io/jsm.go | Apache-2.0 |
14+
| github.com/nats-io/jwt/v2 | Apache-2.0 |
15+
| github.com/nats-io/nats-server/v2 | Apache-2.0 |
16+
| github.com/nats-io/nats.go | Apache-2.0 |
17+
| github.com/nats-io/nkeys | Apache-2.0 |
18+
| github.com/nats-io/nuid | Apache-2.0 |
19+
| github.com/rhysd/go-github-selfupdate/selfupdate | MIT |
20+
| github.com/spf13/cobra | Apache-2.0 |
21+
| github.com/spf13/pflag | BSD-3-Clause |
22+
| github.com/stretchr/testify | MIT |
23+
| github.com/xlab/tablewriter | Apache-2.0 |
24+
| golang.org/x/text | BSD-3-Clause |

0 commit comments

Comments
 (0)