summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-11-23 14:22:31 +0800
committer魏曹先生 <1992414357@qq.com>2025-11-23 14:22:31 +0800
commitc80f78fd36d1e4b9254479c7b99777a8773e3e6e (patch)
tree10b32f072370d1fbe438766e5354d0d99eccd9b3
parent3f5b8bda0af9e89bc3d454038f8957f217b9ec24 (diff)
Add PowerShell support for completions and entry scripts
- Rename cargo alias from `pub` to `export` for clarity - Update publish target directory path - Add PowerShell completion scripts and entry points - Reorganize configuration with section headers - Add export directory to gitignore
-rw-r--r--.cargo/config.toml35
-rw-r--r--.gitignore3
2 files changed, 33 insertions, 5 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
index c47adef..35a4b6f 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -2,10 +2,11 @@
target-dir = "./.temp/target/"
[alias]
-pub = "run --manifest-path crates/build_helper/Cargo.toml --bin exporter"
+# Use `cargo export` to export the project
+export = "run --manifest-path crates/build_helper/Cargo.toml --bin exporter"
[publish]
-target-dir = "./.temp/publish/"
+target-dir = "./export/"
binaries = [
"jv",
"jv.exe",
@@ -14,14 +15,38 @@ binaries = [
"jvv.exe",
]
-[copies.completion_jv]
+############
+### Bash ###
+############
+
+# Completions
+[copies.completion_jv_bash]
from = "scripts/completion_jv.sh"
to = "completion_jv.sh"
-[copies.completion_jvv]
+[copies.completion_jvv_bash]
from = "scripts/completion_jvv.sh"
to = "completion_jvv.sh"
-[copies.entry]
+# Entries
+[copies.entry_bash]
from = "scripts/cli.sh"
to = "cli.sh"
+
+##################
+### Powershell ###
+##################
+
+# Completions
+[copies.completion_jv_powershell]
+from = "scripts/completion_jv.ps1"
+to = "completion_jv.ps1"
+
+[copies.completion_jvv_powershell]
+from = "scripts/completion_jvv.ps1"
+to = "completion_jvv.ps1"
+
+# Entries
+[copies.entry_powershell]
+from = "scripts/cli.ps1"
+to = "cli.ps1"
diff --git a/.gitignore b/.gitignore
index 2301476..a3e2496 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,5 +17,8 @@
# Target directory
/target/
+# Export directory
+/export/
+
# Compile info
/src/data/compile_info.rs