diff --git a/.github/workflows/pushes.yaml b/.github/workflows/pushes.yaml index a92ba5dd..ff3adc34 100644 --- a/.github/workflows/pushes.yaml +++ b/.github/workflows/pushes.yaml @@ -16,14 +16,14 @@ permissions: on: push: branches-ignore: - - 'exp' - - 'exp/*' - - 'exp-*' - - 'exp_*' - - 'wip' - - 'wip/*' - - 'wip-*' - - 'wip_*' + - "exp" + - "exp/*" + - "exp-*" + - "exp_*" + - "wip" + - "wip/*" + - "wip-*" + - "wip_*" pull_request: jobs: @@ -38,13 +38,13 @@ jobs: # The canonical entry is the only one where we run vet/lint/style checks. # `experimental: true` entries do not cause the tests to fail. include: - - go: 'stable' + - go: "stable" os: ubuntu-latest canonical: true - - go: 'stable' + - go: "stable" os: windows-latest canonical: false - - go: 'stable' + - go: "stable" os: macos-latest canonical: false diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 431ea9c0..545d69dc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,7 +6,7 @@ on: # From 2.7.6 onwards, we use the vX.Y.Z tag naming pattern. # Before then, we used non-version tags. # Going forward, for new releases, we only need to support v. - - 'v[0-9]*' + - "v[0-9]*" permissions: # Control the GITHUB_TOKEN permissions; GitHub's docs on which permission scopes control what are a little lacking. @@ -21,7 +21,6 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - name: Checkout uses: actions/checkout@v4 with: @@ -36,7 +35,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: "1.21" check-latest: true - name: Install cosign diff --git a/cmd/reissueaccount.go b/cmd/reissueaccount.go index 93daa042..24b30c0b 100644 --- a/cmd/reissueaccount.go +++ b/cmd/reissueaccount.go @@ -31,6 +31,7 @@ func createReissueAccountCmd() *cobra.Command { Example: `nsc reissue account`, Args: MaxArgs(0), SilenceUsage: false, + Hidden: true, RunE: func(cmd *cobra.Command, args []string) error { if err := RunMaybeStorelessAction(cmd, args, ¶ms); err != nil { return err @@ -82,6 +83,18 @@ func (p *reissueAccount) Run(ctx ActionCtx) (store.Status, error) { ks := ctx.StoreCtx().KeyStore accounts, err := s.ListSubContainers(store.Accounts) + // maybe filter to the account name provided + if ctx.CurrentCmd().Flags().Changed("account") { + var buf []string + name := ctx.StoreCtx().Account.Name + for _, n := range accounts { + if n == name { + buf = append(buf, n) + } + } + accounts = buf + } + if err != nil { return nil, err } diff --git a/dependencies.md b/dependencies.md index e142d8a1..afcf64bd 100644 --- a/dependencies.md +++ b/dependencies.md @@ -2,23 +2,23 @@ This file lists the dependencies used in this repository. -| Dependency | License | -|----------------------------------------------------------|-----------------------------------------| -| go | BSD 3-Clause "New" or "Revised" License | -| github.com/blang/semver | MIT | -| github.com/briandowns/spinner | Apache-2.0 | -| github.com/dustin/go-humanize | MIT | -| github.com/mitchellh/go-homedir | MIT | -| github.com/nats-io/cliprompts/v2 | Apache-2.0 | -| github.com/nats-io/jsm.go | Apache-2.0 | -| github.com/nats-io/jwt/v2 | Apache-2.0 | -| github.com/nats-io/nats-server/v2 | Apache-2.0 | -| github.com/nats-io/nats.go | Apache-2.0 | -| github.com/nats-io/nkeys | Apache-2.0 | -| github.com/nats-io/nuid | Apache-2.0 | -| github.com/rhysd/go-github-selfupdate/selfupdate | MIT | -| github.com/spf13/cobra | Apache-2.0 | -| github.com/spf13/pflag | BSD-3-Clause | -| github.com/stretchr/testify | MIT | -| github.com/xlab/tablewriter | Apache-2.0 | -| golang.org/x/text | BSD-3-Clause | +| Dependency | License | +| ------------------------------------------------ | --------------------------------------- | +| go | BSD 3-Clause "New" or "Revised" License | +| github.com/blang/semver | MIT | +| github.com/briandowns/spinner | Apache-2.0 | +| github.com/dustin/go-humanize | MIT | +| github.com/mitchellh/go-homedir | MIT | +| github.com/nats-io/cliprompts/v2 | Apache-2.0 | +| github.com/nats-io/jsm.go | Apache-2.0 | +| github.com/nats-io/jwt/v2 | Apache-2.0 | +| github.com/nats-io/nats-server/v2 | Apache-2.0 | +| github.com/nats-io/nats.go | Apache-2.0 | +| github.com/nats-io/nkeys | Apache-2.0 | +| github.com/nats-io/nuid | Apache-2.0 | +| github.com/rhysd/go-github-selfupdate/selfupdate | MIT | +| github.com/spf13/cobra | Apache-2.0 | +| github.com/spf13/pflag | BSD-3-Clause | +| github.com/stretchr/testify | MIT | +| github.com/xlab/tablewriter | Apache-2.0 | +| golang.org/x/text | BSD-3-Clause |