fnva 0.0.55 → 0.0.56
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
CHANGED
|
@@ -1,41 +1,58 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
1
3
|
# fnva - Fast Environment Version Alter
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
**Fast, cross-platform environment version switcher**
|
|
4
6
|
|
|
5
|
-
[中文文档](README_zh.md) · [
|
|
7
|
+
[中文文档](README_zh.md) · [Architecture](docs/architecture/core-design.md) · [Releases](https://github.com/Protagonistss/fnva/releases)
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
[](https://www.npmjs.com/package/fnva)
|
|
10
|
+
[](https://crates.io/crates/fnva)
|
|
11
|
+
[](LICENSE)
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
<!-- TODO: Add demo.gif here -->
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
- Cargo: `cargo install fnva`
|
|
13
|
-
- Binary: download from [Releases](https://github.com/Protagonistss/fnva/releases) and add to `PATH`.
|
|
15
|
+
</div>
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
fnva is a cross-platform environment switcher for Java, Claude Code (CC), and general LLM setups. Written in Rust, it starts instantly, has zero runtime dependencies, and works via shell snippets without background daemons.
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
PowerShell: `fnva env env --shell powershell | Out-String | Invoke-Expression`
|
|
19
|
-
Fish: `fnva env env --shell fish | source`
|
|
20
|
-
- Scan Java: `fnva java scan`
|
|
21
|
-
- Switch Java for current session: `fnva java use jdk-17` (with shell integration)
|
|
22
|
-
- Switch CC profile: `fnva cc use glmcc` (with shell integration)
|
|
23
|
-
- New terminals auto-restore your last active environment
|
|
19
|
+
## Core Features
|
|
24
20
|
|
|
25
|
-
|
|
21
|
+
- ⚡ **Fast & Zero Dependencies**: Single static binary.
|
|
22
|
+
- 🔄 **Session & Global Switching**: Per-shell activation and global defaults.
|
|
23
|
+
- 🐚 **Broad Shell Support**: PowerShell, Bash, Zsh, Fish, CMD.
|
|
24
|
+
- 🧠 **Auto-restore**: Opening a new terminal automatically restores your last active environment.
|
|
25
|
+
- ☕ **Smart Java Management**: Scan and dedupe local JDKs.
|
|
26
|
+
- 🤖 **Unified LLM Setup**: Configure LLM API keys in one place.
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
- Generates shell snippets to activate environments per session or by default.
|
|
29
|
-
- **Auto-restore** — new terminals automatically restore the last active CC/Java environment.
|
|
30
|
-
- Stores config at `~/.fnva/config.toml` (Windows: `%USERPROFILE%\.fnva\config.toml`).
|
|
31
|
-
- Ships as a single binary; no background daemon.
|
|
28
|
+
## Documentation Navigation
|
|
32
29
|
|
|
33
|
-
|
|
30
|
+
- [Core Architecture](docs/architecture/core-design.md) (Chinese)
|
|
31
|
+
- [Roadmap](docs/development/roadmap.md) (Chinese)
|
|
32
|
+
- [Contributing](docs/development/contributing.md) (Chinese)
|
|
33
|
+
- [Shell Integration Guide](docs/user-guide/shell-integration.md)
|
|
34
34
|
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# npm (recommended)
|
|
39
|
+
npm install -g fnva
|
|
40
|
+
|
|
41
|
+
# Cargo
|
|
42
|
+
cargo install fnva
|
|
35
43
|
```
|
|
36
|
-
cargo fmt && cargo clippy --all-targets -- -D warnings
|
|
37
|
-
cargo test
|
|
38
|
-
cargo build --release
|
|
39
|
-
```
|
|
40
44
|
|
|
41
|
-
|
|
45
|
+
Or download from [Releases](https://github.com/Protagonistss/fnva/releases) and add to `PATH`.
|
|
46
|
+
|
|
47
|
+
## Quick Start
|
|
48
|
+
|
|
49
|
+
- Shell Integration: `eval "$(fnva env env --shell bash)"`
|
|
50
|
+
- Scan Java: `fnva java scan`
|
|
51
|
+
- Switch Java: `fnva java use jdk-17` (with shell integration)
|
|
52
|
+
- Switch CC profile: `fnva cc use glmcc`
|
|
53
|
+
|
|
54
|
+
## Configuration
|
|
55
|
+
Config is stored at `~/.fnva/config.toml` (Windows: `%USERPROFILE%\.fnva\config.toml`).
|
|
56
|
+
|
|
57
|
+
## License
|
|
58
|
+
MIT License.
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/platforms/linux-x64/fnva
CHANGED
|
Binary file
|
|
Binary file
|