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
2 changes: 1 addition & 1 deletion docs/cli/generate/tool-stub.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Examples:

```
Generate a tool stub for a single URL:
$ mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.336.0/gh_2.336.0_linux_amd64.tar.gz"
$ mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.96.0/gh_2.96.0_linux_amd64.tar.gz"

Generate a tool stub with platform-specific URLs:
$ mise generate tool-stub ./bin/rg \
Expand Down
4 changes: 2 additions & 2 deletions docs/dev-tools/tool-stubs.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ When using platform-specific URLs, the tool stub generator will append new platf
Generate a tool stub for a tool distributed via HTTP:

```bash
mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.336.0/gh_2.336.0_linux_amd64.tar.gz"
mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.96.0/gh_2.96.0_linux_amd64.tar.gz"
```

This will:
Expand Down Expand Up @@ -176,7 +176,7 @@ Running the generation command produces an executable stub like:

version = "latest"
bin = "bin/gh"
url = "https://github.com/cli/cli/releases/download/v2.336.0/gh_2.336.0_linux_amd64.tar.gz"
url = "https://github.com/cli/cli/releases/download/v2.96.0/gh_2.96.0_linux_amd64.tar.gz"
checksum = "blake3:a1b2c3d4e5f6..."
size = 12345678
```
Expand Down
2 changes: 1 addition & 1 deletion mise.usage.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ to incrementally build cross-platform tool stubs.
Examples:

Generate a tool stub for a single URL:
$ mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.336.0/gh_2.336.0_linux_amd64.tar.gz"
$ mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.96.0/gh_2.96.0_linux_amd64.tar.gz"

Generate a tool stub with platform-specific URLs:
$ mise generate tool-stub ./bin/rg \
Expand Down
2 changes: 1 addition & 1 deletion src/backend/asset_matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,7 @@ abc123def456abc123def456abc123def456abc123def456abc123def456abcd tool-1.0.0-dar

// Test Windows URL
let url =
"https://github.com/cli/cli/releases/download/v2.336.0/gh_2.336.0_windows_amd64.zip";
"https://github.com/cli/cli/releases/download/v2.96.0/gh_2.96.0_windows_amd64.zip";
let platform = detect_platform_from_url(url).unwrap();
assert_eq!(platform.os, AssetOs::Windows);
assert_eq!(platform.arch, AssetArch::X64);
Expand Down
2 changes: 1 addition & 1 deletion src/cli/generate/tool_stub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ static AFTER_LONG_HELP: &str = color_print::cstr!(
r#"<bold><underline>Examples:</underline></bold>

Generate a tool stub for a single URL:
$ <bold>mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.336.0/gh_2.336.0_linux_amd64.tar.gz"</bold>
$ <bold>mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.96.0/gh_2.96.0_linux_amd64.tar.gz"</bold>

Generate a tool stub with platform-specific URLs:
$ <bold>mise generate tool-stub ./bin/rg \
Expand Down