mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
b38f90d4c7
* Added search terms to math commands * Attempts to add ~user. From: // Extend this to work with "~user" style of home paths * Clippy recommendation * clippy suggestions, again. * fixing non-compilation on windows and macos * fmt apparently does not like my imports * even more clippy issues. * less expect(), single conversion, match. Should work for MacOS too. * Attempted to add functionality for windows: all it does is take the home path of current user, and replace the username. * silly mistake in Windows version of user_home_dir() * Update tilde.rs * user_home_dir now returns a path instead of a string - should be smoother with no conversions to string * clippy warnings * clippy warnings 2 * Changed user_home_dir to return PathBuf now. * Changed user_home_dir to return PathBuf now. * forgot to fmt * fixed windows build errors from modifying pathbuf but not returning it * fixed windows clippy errors from returning () instead of pathbuf * forgot to fmt * borrowed path did not live long enough. * previously, path.push did not work because rest_of_path started with "/" - it was not relative. Removing the / makes it a relative path again. * Issue fixed. * Update tilde.rs * fmt. * There is now a zero chance of panic. All expect()s have been removed.
14 lines
No EOL
289 B
TOML
14 lines
No EOL
289 B
TOML
[package]
|
|
authors = ["The Nushell Project Developers"]
|
|
description = "Path handling library for Nushell"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
name = "nu-path"
|
|
version = "0.61.1"
|
|
|
|
[dependencies]
|
|
dirs-next = "2.0.0"
|
|
dunce = "1.0.1"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
pwd = "1.3.1" |