Amit Dahan
97be792a44
experimental: support `package.json#engines` for `use` and `install` ( #839 )
...
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
2 years ago
Amit Dahan
b19eb29b26
Bump Clap 3 -> 4 ( #991 )
...
* fix(deps): update clap-rs to v4
* Define enums for multi-choice clap args
* fix test
* Update command docs
* Add `all` alias to log-level
* remove unused thing
* Add changeset
* Use `Shells` instead of `Box<dyn Shell>` everywhere
* Revert "Use `Shells` instead of `Box<dyn Shell>` everywhere"
This reverts commit 7781b5d87354c1f9500ecfafde1aba43d6dd5e37.
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2 years ago
tottoto
ef2bf6e512
Replace atty with std::io::IsTerminal ( #973 )
...
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
2 years ago
Joshua Hollander
3d9f3a5375
Capitalised "n" to reflect default option ( #963 )
...
Co-authored-by: Joshua Hollander <joshua.hollander@diversus.com.au>
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
2 years ago
Gal Schlezinger
c29f315f18
allow to automatically enable corepack ( #960 )
...
* allow to automatically enable corepack
* update command docs
* add changeset
* fix clippy
* don't show the value of corepack
* fix test
* test against more shells
* Make exec handle errors more nicely
* nicer i think
* set corepack as debug
* fix windows-style paths in Bash #390
* fix clippy
* run cygpath on `use` validation too
* trim whitespace
* fix test?
* fix test
* add changeset
2 years ago
Gal Schlezinger
9940513c51
fix clippy ( #972 )
...
* fix clippy
* cargo fmt
2 years ago
Gal Schlezinger
7f9ed6668d
Fix Clippy errors ( #885 )
...
* cargo clippy --fix
* cargo fmt
2 years ago
nzhl
ca71291020
feat: support `fnm install --latest` ( #859 )
...
* feat: support to install the latest version
* chore: test & fmt & clippy
* docs: update command docs
* docs: update command docs
* Create warm-rice-appear.md
* Update change set to be a minor release
As this is a new feature
* chore: update workflow to install pnpm
* Remove `feat:` from changeset
Because GitHub actions approval button is missing
* run pnpm like other tasks
* Revert "run pnpm like other tasks"
This reverts commit f5f2ca29f1
.
we can revert the yarn changes and do it in a different PR
* revert the changes in .github/workflows
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
2 years ago
Ezekiel Warren
405b987f34
Added json option to env command ( #800 )
...
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
2 years ago
Gal Schlezinger
bedb9555fa
migrate e2e tests to nodejs ( #849 )
...
resolves #848
2 years ago
renovate[bot]
24ce5755b4
chore(deps): update all non-major dependencies ( #673 )
...
* chore(deps): update all non-major dependencies
* cargo clippy --fix
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
3 years ago
Gal Schlezinger
c85ff97f14
remove .unwrap() and .expect() in shell code ( #663 )
...
* remove .unwrap() and .expect() in shell code
this should provide nicer error messages if users get to these situations
* Silent github comments
3 years ago
Gal Schlezinger
f83fc48251
Remove unwrap in fnm env, make error more readable ( #656 )
3 years ago
Gal Schlezinger
ad0ecd7fff
Use local cache directory instead of temp directory for symlinks ( #638 )
...
* Use local cache directory instead of temp directory for symlinks
still with no cleanup, probably need to have --cleanup-duration=... for fnm env
or another command for cleaning up old symlinks.
* Introduce directories, and support XDG_ directories for cache directories
* cargo clippy --fix
3 years ago
renovate[bot]
b6b0cfa0e6
fix(deps): update rust crate clap to v3 ( #617 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
3 years ago
Gal Schlezinger
b24ed660b0
Replace `snafu` with `thiserror` ( #630 )
3 years ago
Gal Schlezinger
9526057afa
Create the multishells directory if it is missing ( #626 )
3 years ago
Gal Schlezinger
207ef22f32
Allow recursive version lookups ( #607 )
3 years ago
Gal Schlezinger
fcc6cc0e6f
Migrate to Rust 2021 edition ( #606 )
3 years ago
Gal Schlezinger
3fc1184bcf
Revert the change to ureq ( #586 )
3 years ago
Gal Schlezinger
8d0d78ca24
Allow aliasing to the system version ( #556 )
3 years ago
Dominik Nakamura
74c9b37895
Fix clippy & use musl target on Rust compiler for static compilation ( #554 )
3 years ago
Dominik Nakamura
9c2e360520
Replace reqwest with ureq for less dependencies and smaller file size ( #547 )
3 years ago
Jonathan Fraimorice
fa72f0c44b
Replace error message with a more useful one ( #544 )
3 years ago
Alex Munoz
fd584746a6
Add unalias command ( #489 )
4 years ago
Alex Munoz
79ded8f6be
fix: --install-if-missing when using version alias ( #484 )
4 years ago
Patrick Kilgore
440c624263
feat: use arm for aarch64-darwin-node@16 platforms ( #436 )
4 years ago
Gal Schlezinger
5f2d3a269f
Create version symlinks in a nested directory ( #422 )
4 years ago
Gal Schlezinger
1327286abd
Adding FNM_ARCH as an exported env var from fnm env ( #421 )
...
Continuation of #417 so it will work with `--use-on-cd` as well
4 years ago
Patrick Kilgore
68ba8c6457
Support Apple M1 by installing Rosetta Node builds ( #417 )
4 years ago
Waldir Pimenta
6bd3ab9813
Improve "version not found" error message ( #413 )
4 years ago
Gal Schlezinger
2cfaa39b0b
More meaningful error message when a subprocess is killed ( #414 )
4 years ago
Gal Schlezinger
869fb12ada
Ignore LogLevel on `fnm ls` ( #404 )
...
There is no reason to call `fnm ls` if you want a quiet output.
So even on quiet output, `fnm ls` should print all the data. It's not
debugging information, but the actual output of the program.
4 years ago
Gal Schlezinger
dba2b9f8e0
Allow `fnm use` to use a file path ( #403 )
4 years ago
Gal Schlezinger
a2aeeb779d
Allow using filenames in --using= ( #401 )
4 years ago
Gal Schlezinger
ea42957a5f
`fnm exec`: Don't require double-dash ( #398 )
4 years ago
Leaf Rogers
eda3c0cdc5
Fix minor typos ( #397 )
4 years ago
Bjørn Arnholtz
05a15117c3
Bring back --using-file flag with a deprecation warning. ( #317 )
4 years ago
Gal Schlezinger
e65e767bd7
Better error handling in symlink replacement ( #310 )
...
* Better error handling in symlink replacement
* Wrong way
4 years ago
Gal Schlezinger
ed5a82fd84
Allow unsuccessful symlink deletion in `fnm use` ( #308 )
4 years ago
Gal Schlezinger
d93bb4219f
Throw an error instead of panicking when can't infer shell ( #306 )
4 years ago
Gal Schlezinger
538c907ad7
Make the first installed version the default one ( #304 )
4 years ago
Gal Schlezinger
51c1bb5695
Add a warning if MULTISHELL env var is not in PATH ( #295 )
...
Fixes #183
4 years ago
Gal Schlezinger
be3843710d
Add uninstall command ( #292 )
4 years ago
Gal Schlezinger
757a3c61b8
Add detailed error instead of panic regarding `fnm env` ( #293 )
4 years ago
Gal Schlezinger
9ba282a705
Rewrite fnm in Rust (merge fnm.rs into fnm) — adding Windows support! ( #246 )
5 years ago