nushell/crates/nu-command/src
David Matos 838fc7e098
Initial implementation for uutils uname (#11684)
Hi,
This PR aims at implementing the first iteration for `uname` using
`uutils`. Couple of things:
* Currently my [PR](https://github.com/uutils/coreutils/pull/5921) to
make the required changes is pending in `uutils` repo.
* I guess the number of flags has to be investigated. Still the tests
cover all of them.


<!--
if this PR closes one or more issues, you can automatically link the PR
with
them by using one of the [*linking
keywords*](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword),
e.g.
- this PR should close #xxxx
- fixes #xxxx

you can also mention related issues, PRs or discussions!
-->

# Description
<!--
Thank you for improving Nushell. Please, check our [contributing
guide](../CONTRIBUTING.md) and talk to the core team before making major
changes.

Description of your pull request goes here. **Provide examples and/or
screenshots** if your changes affect the user experience.
-->

# User-Facing Changes
<!-- List of all changes that impact the user experience here. This
helps us keep track of breaking changes. -->

# Tests + Formatting
Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- [X] `cargo fmt --all -- --check` to check standard code formatting
(`cargo fmt --all` applies these changes)
- [X] `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used`
to check that you're using the standard code style
- [X] `cargo test --workspace` to check that all tests pass (on Windows
make sure to [enable developer
mode](https://learn.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging))
- [X] `cargo run -- -c "use std testing; testing run-tests --path
crates/nu-std"` to run the tests for the standard library

> **Note**
> from `nushell` you can also use the `toolkit` as follows
> ```bash
> use toolkit.nu # or use an `env_change` hook to activate it
automatically
> toolkit check pr
> ```
-->

# After Submitting
<!-- If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
-->

---------

Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2024-03-25 16:51:50 -05:00
..
bytes Debugger experiments (#11441) 2024-03-08 20:21:35 +02:00
charting Misc doc fixes (#12266) 2024-03-23 07:26:08 -05:00
conversions Fix broken build: replace value_string() straggler (#12237) 2024-03-19 07:52:49 -05:00
database Initial --params implementation (#12249) 2024-03-24 15:40:21 -05:00
date Adjust examples in date commands (#12055) 2024-03-03 15:10:50 -06:00
debug Refactor source cache into CachedFile struct (#12240) 2024-03-20 19:43:50 +01:00
env ls, rm, cp, open, touch, mkdir: Don't expand tilde if input path is quoted string or a variable. (#12232) 2024-03-25 10:08:38 +08:00
experimental Bump windows from 0.48.0 to 0.52.0 (#11325) 2023-12-21 18:49:15 +01:00
filesystem ls, rm, cp, open, touch, mkdir: Don't expand tilde if input path is quoted string or a variable. (#12232) 2024-03-25 10:08:38 +08:00
filters Fix zip signature to mention closure input type (#12216) 2024-03-16 16:01:09 -05:00
formats Fix usage of --tabs flag while converting to json (#12115) (#12251) 2024-03-20 11:55:51 -05:00
generators IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
hash adjust some commansd input_output type (#11436) 2024-01-15 16:58:26 +08:00
help Fix ignored clippy lints (#12160) 2024-03-11 19:46:04 +01:00
math allow math avg to work with durations (#11598) 2024-01-21 08:41:23 -06:00
misc IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
network Fix ignored clippy lints (#12160) 2024-03-11 19:46:04 +01:00
path ls, rm, cp, open, touch, mkdir: Don't expand tilde if input path is quoted string or a variable. (#12232) 2024-03-25 10:08:38 +08:00
platform Fix inaccurate sleep duration (#12235) 2024-03-20 16:45:33 +08:00
random Name the Value conversion functions more clearly (#11851) 2024-02-17 18:14:16 +00:00
removed Enforce required, optional, and rest positional arguments start with an uppercase and end with a period. (#11285) 2023-12-15 14:32:37 +08:00
shells Enforce required, optional, and rest positional arguments start with an uppercase and end with a period. (#11285) 2023-12-15 14:32:37 +08:00
stor Initial --params implementation (#12249) 2024-03-24 15:40:21 -05:00
strings remove str escape-glob command (#12241) 2024-03-20 14:15:02 +01:00
system Initial implementation for uutils uname (#11684) 2024-03-25 16:51:50 -05:00
viewers IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00
default_context.rs Initial implementation for uutils uname (#11684) 2024-03-25 16:51:50 -05:00
example_test.rs Initial --params implementation (#12249) 2024-03-24 15:40:21 -05:00
lib.rs Initial --params implementation (#12249) 2024-03-24 15:40:21 -05:00
progress_bar.rs remove cp-old (#11622) 2024-01-24 07:38:15 +08:00
sort_utils.rs Add Value::coerce_str (#11885) 2024-02-18 17:47:10 +01:00