Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ jobs:

# Ref: https://github.com/github/codeql-action
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}

- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
17 changes: 16 additions & 1 deletion CHANGELOG/CHANGELOG-1.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ Date format: `YYYY-MM-DD`

---

## [1.38.0] - 2025-10-08

### Added
### Changed
- **debt:** Upgraded dependencies to their latest stable versions.
- **debt:** Updated documentation and Go-doc comments.

### Deprecated
### Removed
### Fixed
### Security

---

## [1.37.0] - 2025-09-30

### Added
Expand Down Expand Up @@ -620,7 +634,8 @@ Date format: `YYYY-MM-DD`
### Fixed
### Security

[Unreleased]: https://github.com/sixafter/nanoid-cli/compare/v1.37.0...HEAD
[Unreleased]: https://github.com/sixafter/nanoid-cli/compare/v1.38.0...HEAD
[1.38.0]: https://github.com/sixafter/nanoid-cli/compare/v1.37.0...v1.38.0
[1.37.0]: https://github.com/sixafter/nanoid-cli/compare/v1.36.0...v1.37.0
[1.36.0]: https://github.com/sixafter/nanoid-cli/compare/v1.35.0...v1.36.0
[1.35.0]: https://github.com/sixafter/nanoid-cli/compare/v1.34.0...v1.35.0
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ using the [NanoID](https://github.com/sixafter/nanoid) Go implementation.
To verify the integrity of the release, you can use Cosign to check the signature and checksums. Follow these steps:

```sh
# Fetch the latest release tag from GitHub API (e.g., "v1.36.0")
# Fetch the latest release tag from GitHub API (e.g., "v1.38.0")
TAG=$(curl -s https://api.github.com/repos/sixafter/nanoid-cli/releases/latest | jq -r .tag_name)

# Remove leading "v" for filenames (e.g., "v1.36.0" -> "1.36.0")
# Remove leading "v" for filenames (e.g., "v1.38.0" -> "1.38.0")
VERSION=${TAG#v}

# Verify the release tarball
Expand Down Expand Up @@ -93,7 +93,7 @@ For casks to work, you'll need curl installed. If you don't have it, you can ins
brew install curl
```

🔐 Note for macOS users: If you see a killed error when running nanoid, macOS may have quarantined the binary due to it being unsigned or unnotarized. To resolve:
**Note for macOS users:** If you see a `killed` error when running nanoid, macOS may have quarantined the binary due to it being unsigned or unnotarized. To resolve:

```sh
sudo xattr -d com.apple.quarantine /opt/homebrew/bin/nanoid
Expand Down
15 changes: 13 additions & 2 deletions cmd/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,21 @@ import (
)

var (
// idLength specifies the desired length of the generated ID.
// It determines how many characters the resulting identifier will contain.
idLength int

// alphabet defines the set of characters that can be used when generating IDs.
// It should contain a unique sequence of runes from which random characters are selected.
alphabet string
count int
verbose bool

// count indicates how many IDs to generate during execution.
// Useful for batch operations or performance benchmarking.
count int

// verbose controls whether detailed diagnostic or progress information is printed.
// When true, additional output such as timing or debug details may be displayed.
verbose bool
)

// NewGenerateCommand creates and returns the generate command
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ go 1.25

require (
github.com/dustin/go-humanize v1.0.1
github.com/sixafter/nanoid v1.52.0
github.com/sixafter/nanoid v1.53.0
github.com/sixafter/semver v1.9.0
github.com/spf13/cobra v1.10.1
github.com/stretchr/testify v1.11.1
Expand All @@ -19,10 +19,10 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/sixafter/aes-ctr-drbg v1.10.0 // indirect
github.com/sixafter/prng-chacha v1.6.0 // indirect
github.com/sixafter/aes-ctr-drbg v1.11.0 // indirect
github.com/sixafter/prng-chacha v1.7.0 // indirect
github.com/spf13/pflag v1.0.10 // indirect
golang.org/x/crypto v0.42.0 // indirect
golang.org/x/sys v0.36.0 // indirect
golang.org/x/sys v0.37.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLf
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sixafter/aes-ctr-drbg v1.10.0 h1:ZF3HBF9zVKOJHGcuvkjqp1QHYN5kuyYivmhFgO+yCnU=
github.com/sixafter/aes-ctr-drbg v1.10.0/go.mod h1:k0MnzFOGf7ks7ixN/N72wQAT/7u+lIknQWa7H9Iqew4=
github.com/sixafter/nanoid v1.52.0 h1:8eViRdll2B/4g8tOdVuywTeV6ir++GYK5xUCzD3mmMs=
github.com/sixafter/nanoid v1.52.0/go.mod h1:wV91+XpQYVG/ycSZv3PXLyQ9eupYSH0wp9Jhhl6d3jc=
github.com/sixafter/prng-chacha v1.6.0 h1:e0ADGI8dZoV9DRdGCBhtdD3E+iKBoqS4ydtXFu90FrQ=
github.com/sixafter/prng-chacha v1.6.0/go.mod h1:/qgtGyz1ueWauLV6JgIi6a2BNc/9IkLWXL98U2GEM7o=
github.com/sixafter/aes-ctr-drbg v1.11.0 h1:jwWSDZjY+t0Z/DszYc9fGKFva8y28zidKRn8caKwed8=
github.com/sixafter/aes-ctr-drbg v1.11.0/go.mod h1:k0MnzFOGf7ks7ixN/N72wQAT/7u+lIknQWa7H9Iqew4=
github.com/sixafter/nanoid v1.53.0 h1:QdeHnz36hBhrq0h8jE56N8s9+p8X4zwqsFxDs43XcvM=
github.com/sixafter/nanoid v1.53.0/go.mod h1:j5f/yGNQTahmaqaTABynKMV59MBGOL2FIaSLDcxlPDo=
github.com/sixafter/prng-chacha v1.7.0 h1:OJibJp5WE66Ief/xRMg8pKeUGIioJz2CHxY+hoR7kfQ=
github.com/sixafter/prng-chacha v1.7.0/go.mod h1:9oPJR3gITYPCazxNOovPTmkvzG28Snt1TLo+TeFpe3Q=
github.com/sixafter/semver v1.9.0 h1:dM8RIBEEpZ0YKzcXA3+rnmmiRES37RYoaeQwtKAe/BQ=
github.com/sixafter/semver v1.9.0/go.mod h1:kIkw1gO0r6JtGoOam9xesWKqOFUH8kfTViLVbiC4WmA=
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
Expand All @@ -29,8 +29,8 @@ golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI=
golang.org/x/crypto v0.42.0/go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8=
golang.org/x/exp v0.0.0-20250813145105-42675adae3e6 h1:SbTAbRFnd5kjQXbczszQ0hdk3ctwYf3qBNH9jIsGclE=
golang.org/x/exp v0.0.0-20250813145105-42675adae3e6/go.mod h1:4QTo5u+SEIbbKW1RacMZq1YEfOBqeXa19JeshGi+zc4=
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ=
golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
44 changes: 23 additions & 21 deletions vendor/github.com/sixafter/aes-ctr-drbg/aes_ctr_drbg.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 15 additions & 5 deletions vendor/github.com/sixafter/nanoid/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 62 additions & 17 deletions vendor/github.com/sixafter/nanoid/config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading