magicmd 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -3
- package/bin/magicmd.js +15 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,9 +13,17 @@ uvx --from magicmd magicmd
|
|
|
13
13
|
- Node.js 18+
|
|
14
14
|
- `uv` available on `PATH`
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
If `uvx` is missing, install `uv` first:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# macOS/Linux
|
|
20
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
17
21
|
|
|
18
|
-
|
|
22
|
+
# Windows
|
|
23
|
+
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
19
27
|
|
|
20
28
|
```bash
|
|
21
29
|
npm install -g magicmd
|
|
@@ -23,10 +31,11 @@ magicmd --version
|
|
|
23
31
|
magicmd batch urls.txt -o output/
|
|
24
32
|
```
|
|
25
33
|
|
|
26
|
-
|
|
34
|
+
You can also install MagicMD directly from PyPI:
|
|
27
35
|
|
|
28
36
|
```bash
|
|
29
37
|
uv tool install magicmd
|
|
38
|
+
pipx install magicmd
|
|
30
39
|
magicmd doctor
|
|
31
40
|
```
|
|
32
41
|
|
package/bin/magicmd.js
CHANGED
|
@@ -11,9 +11,21 @@ const result = spawnSync(command, ["--from", "magicmd", "magicmd", ...args], {
|
|
|
11
11
|
|
|
12
12
|
if (result.error) {
|
|
13
13
|
if (result.error.code === "ENOENT") {
|
|
14
|
-
console.error(
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
console.error(`MagicMD npm package needs uv to run the Python CLI.
|
|
15
|
+
|
|
16
|
+
The npm package is a thin wrapper around:
|
|
17
|
+
uvx --from magicmd magicmd
|
|
18
|
+
|
|
19
|
+
Install uv:
|
|
20
|
+
macOS/Linux:
|
|
21
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
22
|
+
|
|
23
|
+
Windows:
|
|
24
|
+
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
|
|
25
|
+
|
|
26
|
+
Or install MagicMD directly:
|
|
27
|
+
uv tool install magicmd
|
|
28
|
+
pipx install magicmd`);
|
|
17
29
|
process.exit(127);
|
|
18
30
|
}
|
|
19
31
|
console.error(result.error.message);
|