Kyle Bloom
734df47795
fix: return default version if canonicalize fails ( #1058 )
1 year ago
Jake Hansen
d6c132adfd
Allow for cd /D on windows ( #1050 )
1 year ago
Devin Christensen
b185446cfa
fix: panic on completions ( #1010 )
...
* fix(#1006 ): panic on completions
as far as i can tell, this was broken by the clap upgrade (#991 ).
* fix: add smoke test for completions
* skip test on windows
* Create dull-bottles-try.md
---------
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
2 years ago
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
Amit Dahan
1327bb8d6b
Replace semver with node-semver ( #816 )
...
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
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
Gal Schlezinger
e75a92d868
Fix clippy ( #802 )
3 years ago
Alexey Zapparov
d62e17d667
fix: Use correct PATH for npm install test ( #768 )
...
* fix: Use correct PATH for npm install test
Resolves: https://github.com/Schniz/fnm/issues/755
* Create soft-laws-doubt.md
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
3 years ago
renovate[bot]
bf122f4e5e
fix(deps): update rust crate reqwest to 0.11.11 ( #753 )
...
* fix(deps): update rust crate reqwest to 0.11.11
* try to fix build
* fix clippy issues
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
3 years ago
citreae535
f71d0642a3
Make fnm create global scoped environment variables in PowerShell ( #667 )
...
* Fix #664
* Remove unused import
3 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
8456c9fdc5
Fix `fnm completions` ( #652 )
...
I think there's a bug in clap.
Related:
* Fixes #651
3 years ago
Gal Schlezinger
0fba201739
Revert from using sysinfo, but only on Unix machines ( #625 )
...
* Add the `ps` code back
* some quality improvements
* cargo clippy --fix
* fix
* correct path
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
92a75922d5
Ignore arch in help output ( #627 )
3 years ago
Gal Schlezinger
9526057afa
Create the multishells directory if it is missing ( #626 )
3 years ago
Gal Schlezinger
b206248085
Don't warn on `~/.fnm` yet ( #613 )
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
Sam A. Horvath-Hunt
f313e98db3
Respect $XDG_DATA_HOME ( #416 )
3 years ago
Gal Schlezinger
8d30f74a73
Add a user-agent header ( #605 )
3 years ago
Gal Schlezinger
af18f4e2d1
fix clippy
3 years ago
Gal Schlezinger
3fc1184bcf
Revert the change to ureq ( #586 )
3 years ago
Gal Schlezinger
6816ff292c
Add warning to symlink creation ( #584 )
3 years ago
Gal Schlezinger
8bd33dc1b9
First fix for slowess in fnm env ( #576 )
3 years ago
Gal Schlezinger
31d7b291af
Infer shell with `sysinfo` crate ( #573 )
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
Gal Schlezinger
500c9f5711
Fix Windows CMD `cd` failure on paths with spaces (`use-on-cd`) ( #553 )
3 years ago
Dominik Nakamura
9c2e360520
Replace reqwest with ureq for less dependencies and smaller file size ( #547 )
3 years ago
Sanchith Hegde
5eb5823656
docs(cli): Fix typo ( #545 )
3 years ago
Jonathan Fraimorice
fa72f0c44b
Replace error message with a more useful one ( #544 )
3 years ago
Lucas Weng
f4e4d552d1
Show log level options in help and error message ( #537 )
3 years ago
David Aurelio
4a39428c10
Windows: Use junctions rather than symlinks ( #519 )
4 years ago
Waldir Pimenta
ed2be2c979
More informative log level error message ( #516 )
4 years ago
naoey
bd037bdca4
Invoke fnm use on startup for PowerShell ( #514 )
4 years ago
Alex Munoz
fd584746a6
Add unalias command ( #489 )
4 years ago
renovate[bot]
35d8295e33
fix(deps): update rust crate semver to v1 ( #457 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
4 years ago