conversations
listlengths
2
2
[ { "from": "human", "value": "Locally execute a Ruby binary without installing the required library it depends on via the `ruby` command" }, { "from": "gpt", "value": "`ruby -I {{path/to/library_folder}} -r {{library_require_name}} {{path/to/bin_folder/bin_name}}`" } ]
[ { "from": "human", "value": "Display Ruby version via the `ruby` command" }, { "from": "gpt", "value": "`ruby -v`" } ]
[ { "from": "human", "value": "Tell me about `ruff check`." }, { "from": "gpt", "value": "An extremely fast Python linter. `check` is the default command - it can be omitted everywhere.\nIf no files or directories are specified, the current working directory is used by default.\nMore information: ...
[ { "from": "human", "value": "Run the linter on the given files or directories via the `ruff-check` command" }, { "from": "gpt", "value": "`ruff check {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`" } ]
[ { "from": "human", "value": "Apply the suggested fixes, modifying the files in-place via the `ruff-check` command" }, { "from": "gpt", "value": "`ruff check --fix`" } ]
[ { "from": "human", "value": "Run the linter and re-lint on change via the `ruff-check` command" }, { "from": "gpt", "value": "`ruff check --watch`" } ]
[ { "from": "human", "value": "Only enable the specified rules (or all rules), ignoring the configuration file via the `ruff-check` command" }, { "from": "gpt", "value": "`ruff check --select {{ALL|rule_code1,rule_code2,...}}`" } ]
[ { "from": "human", "value": "Additionally enable the specified rules via the `ruff-check` command" }, { "from": "gpt", "value": "`ruff check --extend-select {{rule_code1,rule_code2,...}}`" } ]
[ { "from": "human", "value": "Disable the specified rules via the `ruff-check` command" }, { "from": "gpt", "value": "`ruff check --ignore {{rule_code1,rule_code2,...}}`" } ]
[ { "from": "human", "value": "Ignore all existing violations of a rule by adding `# noqa` directives to all lines that violate it via the `ruff-check` command" }, { "from": "gpt", "value": "`ruff check --select {{rule_code}} --add-noqa`" } ]
[ { "from": "human", "value": "Tell me about `ruff format`." }, { "from": "gpt", "value": "An extremely fast Python code formatter.\nIf no files or directories are specified, the current working directory is used by default.\nMore information: <https://docs.astral.sh/ruff/formatter>.\n" } ]
[ { "from": "human", "value": "Format given files or directories in-place via the `ruff-format` command" }, { "from": "gpt", "value": "`ruff format {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`" } ]
[ { "from": "human", "value": "Print which files would have been modified and return a non-zero exit code if there are files to reformat, and zero otherwise via the `ruff-format` command" }, { "from": "gpt", "value": "`ruff format --check`" } ]
[ { "from": "human", "value": "Print what changes would be made without modifying the files via the `ruff-format` command" }, { "from": "gpt", "value": "`ruff format --diff`" } ]
[ { "from": "human", "value": "Tell me about `ruff`." }, { "from": "gpt", "value": "An extremely fast Python linter and code formatter, written in Rust.\nMore information: <https://docs.astral.sh/ruff/tutorial>.\n" } ]
[ { "from": "human", "value": "View documentation for the Ruff linter via the `ruff` command" }, { "from": "gpt", "value": "`tldr ruff check`" } ]
[ { "from": "human", "value": "View documentation for the Ruff code formatter via the `ruff` command" }, { "from": "gpt", "value": "`tldr ruff format`" } ]
[ { "from": "human", "value": "Tell me about `runit`." }, { "from": "gpt", "value": "3-stage init system.\nMore information: <https://smarden.org/runit/runit.8.html>.\n" } ]
[ { "from": "human", "value": "Start runit's 3-stage init scheme via the `runit` command" }, { "from": "gpt", "value": "`runit`" } ]
[ { "from": "human", "value": "Shut down runit via the `runit` command" }, { "from": "gpt", "value": "`kill --CONT {{runit_pid}}`" } ]
[ { "from": "human", "value": "Tell me about `runsvchdir`." }, { "from": "gpt", "value": "Change the directory `runsvdir` uses by default.\nMore information: <https://manned.org/runsvchdir.8>.\n" } ]
[ { "from": "human", "value": "Switch `runsvdir` directories via the `runsvchdir` command" }, { "from": "gpt", "value": "`sudo runsvchdir {{path/to/directory}}`" } ]
[ { "from": "human", "value": "Tell me about `runsvdir`." }, { "from": "gpt", "value": "Run an entire directory of services.\nMore information: <https://manned.org/runsvdir.8>.\n" } ]
[ { "from": "human", "value": "Start and manage all services in a directory as the current user via the `runsvdir` command" }, { "from": "gpt", "value": "`runsvdir {{path/to/services}}`" } ]
[ { "from": "human", "value": "Start and manage all services in a directory as root via the `runsvdir` command" }, { "from": "gpt", "value": "`sudo runsvdir {{path/to/services}}`" } ]
[ { "from": "human", "value": "Start services in separate sessions via the `runsvdir` command" }, { "from": "gpt", "value": "`runsvdir -P {{path/to/services}}`" } ]
[ { "from": "human", "value": "Tell me about `runsv`." }, { "from": "gpt", "value": "Start and manage a runit service.\nMore information: <https://manned.org/runsv.8>.\n" } ]
[ { "from": "human", "value": "Start a runit service as the current user via the `runsv` command" }, { "from": "gpt", "value": "`runsv {{path/to/service}}`" } ]
[ { "from": "human", "value": "Start a runit service as root via the `runsv` command" }, { "from": "gpt", "value": "`sudo runsv {{path/to/service}}`" } ]
[ { "from": "human", "value": "Tell me about `rustc`." }, { "from": "gpt", "value": "The Rust compiler.\nRust projects usually use `cargo` instead of invoking `rustc` directly.\nMore information: <https://doc.rust-lang.org/rustc>.\n" } ]
[ { "from": "human", "value": "Compile a binary crate via the `rustc` command" }, { "from": "gpt", "value": "`rustc {{path/to/main.rs}}`" } ]
[ { "from": "human", "value": "Compile with optimizations (`s` means optimize for binary size; `z` is the same with even more optimizations) via the `rustc` command" }, { "from": "gpt", "value": "`rustc -C lto -C opt-level={{0|1|2|3|s|z}} {{path/to/main.rs}}`" } ]
[ { "from": "human", "value": "Compile with debugging information via the `rustc` command" }, { "from": "gpt", "value": "`rustc -g {{path/to/main.rs}}`" } ]
[ { "from": "human", "value": "Explain an error message via the `rustc` command" }, { "from": "gpt", "value": "`rustc --explain {{error_code}}`" } ]
[ { "from": "human", "value": "Compile with architecture-specific optimizations for the current CPU via the `rustc` command" }, { "from": "gpt", "value": "`rustc -C target-cpu={{native}} {{path/to/main.rs}}`" } ]
[ { "from": "human", "value": "Display the target list (Note: you have to add a target using `rustup` first to be able to compile for it) via the `rustc` command" }, { "from": "gpt", "value": "`rustc --print target-list`" } ]
[ { "from": "human", "value": "Compile for a specific target via the `rustc` command" }, { "from": "gpt", "value": "`rustc --target {{target_triple}} {{path/to/main.rs}}`" } ]
[ { "from": "human", "value": "Tell me about `rustdoc`." }, { "from": "gpt", "value": "Generate documentation for a Rust crate.\nMore information: <https://doc.rust-lang.org/stable/rustdoc>.\n" } ]
[ { "from": "human", "value": "Generate documentation from the crate's root via the `rustdoc` command" }, { "from": "gpt", "value": "`rustdoc {{src/lib.rs}}`" } ]
[ { "from": "human", "value": "Pass a name for the project via the `rustdoc` command" }, { "from": "gpt", "value": "`rustdoc {{src/lib.rs}} --crate-name {{name}}`" } ]
[ { "from": "human", "value": "Generate documentation from Markdown files via the `rustdoc` command" }, { "from": "gpt", "value": "`rustdoc {{path/to/file.md}}`" } ]
[ { "from": "human", "value": "Specify the output directory via the `rustdoc` command" }, { "from": "gpt", "value": "`rustdoc {{src/lib.rs}} --out-dir {{path/to/output_directory}}`" } ]
[ { "from": "human", "value": "Tell me about `rustfmt`." }, { "from": "gpt", "value": "Format Rust source code.\nMore information: <https://github.com/rust-lang/rustfmt>.\n" } ]
[ { "from": "human", "value": "Format a file, overwriting the original file in-place via the `rustfmt` command" }, { "from": "gpt", "value": "`rustfmt {{path/to/source.rs}}`" } ]
[ { "from": "human", "value": "Check a file for formatting and display any changes on the console via the `rustfmt` command" }, { "from": "gpt", "value": "`rustfmt --check {{path/to/source.rs}}`" } ]
[ { "from": "human", "value": "Backup any modified files before formatting (the original file is renamed with a `.bk` extension) via the `rustfmt` command" }, { "from": "gpt", "value": "`rustfmt --backup {{path/to/source.rs}}`" } ]
[ { "from": "human", "value": "Tell me about `rustic`." }, { "from": "gpt", "value": "Create fast, encrypted, deduplicated backups powered by Rust.\nMore information: <https://github.com/rustic-rs/rustic>.\n" } ]
[ { "from": "human", "value": "Initialize a new repository via the `rustic` command" }, { "from": "gpt", "value": "`rustic init --repository {{/srv/rustic-repo}}`" } ]
[ { "from": "human", "value": "Create a new backup of a file/directory to a repository via the `rustic` command" }, { "from": "gpt", "value": "`rustic backup --repository {{/srv/rustic-repo}} {{path/to/file_or_directory}}`" } ]
[ { "from": "human", "value": "Tell me about `rustscan`." }, { "from": "gpt", "value": "Fast Port Scanner written in Rust with `nmap` built in.\nMore information: <https://github.com/RustScan/RustScan>.\n" } ]
[ { "from": "human", "value": "Scan all ports of one or more comma-delimited addresses using the default values via the `rustscan` command" }, { "from": "gpt", "value": "`rustscan {{[-a|--addresses]}} {{ip_or_hostname}}`" } ]
[ { "from": "human", "value": "Scan the top 1000 ports with service and version detection via the `rustscan` command" }, { "from": "gpt", "value": "`rustscan --top {{[-a|--addresses]}} {{address_or_addresses}}`" } ]
[ { "from": "human", "value": "Scan a specific list of ports via the `rustscan` command" }, { "from": "gpt", "value": "`rustscan {{[-p|--ports]}} {{port1,port2,...,portN}} {{[-a|--addresses]}} {{address_or_addresses}}`" } ]
[ { "from": "human", "value": "Scan a specific range of ports via the `rustscan` command" }, { "from": "gpt", "value": "`rustscan {{[-r|--range]}} {{start-end}} {{[-a|--addresses]}} {{address_or_addresses}}`" } ]
[ { "from": "human", "value": "Add script arguments to `nmap` via the `rustscan` command" }, { "from": "gpt", "value": "`rustscan {{[-a|--addresses]}} {{address_or_addresses}} -- -A -sC`" } ]
[ { "from": "human", "value": "Scan with custom batch size (default: 4500) and timeout (default: 1500ms) via the `rustscan` command" }, { "from": "gpt", "value": "`rustscan {{[-b|--batch-size]}} {{batch_size}} {{[-t|--timeout]}} {{timeout}} {{[-a|--addresses]}} {{address_or_addresses}}`" } ]
[ { "from": "human", "value": "Scan with specific port order via the `rustscan` command" }, { "from": "gpt", "value": "`rustscan --scan-order {{serial|random}} {{[-a|--addresses]}} {{address_or_addresses}}`" } ]
[ { "from": "human", "value": "Scan in greppable mode (only output of the ports, no `nmap`) via the `rustscan` command" }, { "from": "gpt", "value": "`rustscan {{[-g|--greppable]}} {{[-a|--addresses]}} {{address_or_addresses}}`" } ]
[ { "from": "human", "value": "Tell me about `rustup check`." }, { "from": "gpt", "value": "Check for updates to Rust toolchains and `rustup`.\nMore information: <https://rust-lang.github.io/rustup>.\n" } ]
[ { "from": "human", "value": "Check for all updates via the `rustup-check` command" }, { "from": "gpt", "value": "`rustup check`" } ]
[ { "from": "human", "value": "Tell me about `rustup completions`." }, { "from": "gpt", "value": "Generate shell completions for `rustup` and `cargo`.\nMore information: <https://rust-lang.github.io/rustup>.\n" } ]
[ { "from": "human", "value": "Print the completion script to `stdout` via the `rustup-completions` command" }, { "from": "gpt", "value": "`rustup completions {{bash|elvish|fish|powershell|zsh}} {{rustup|cargo}}`" } ]
[ { "from": "human", "value": "Tell me about `rustup component`." }, { "from": "gpt", "value": "Modify a toolchain's installed components.\nWithout the `--toolchain` option `rustup` will use the default toolchain. See `rustup help toolchain` for more information about toolchains.\nMore information...
[ { "from": "human", "value": "Add a component to a toolchain via the `rustup-component` command" }, { "from": "gpt", "value": "`rustup component add --toolchain {{toolchain}} {{component}}`" } ]
[ { "from": "human", "value": "Remove a component from a toolchain via the `rustup-component` command" }, { "from": "gpt", "value": "`rustup component remove --toolchain {{toolchain}} {{component}}`" } ]
[ { "from": "human", "value": "List installed and available components for a toolchain via the `rustup-component` command" }, { "from": "gpt", "value": "`rustup component list --toolchain {{toolchain}}`" } ]
[ { "from": "human", "value": "List installed components for a toolchain via the `rustup-component` command" }, { "from": "gpt", "value": "`rustup component list --toolchain {{toolchain}} --installed`" } ]
[ { "from": "human", "value": "Tell me about `rustup default`." }, { "from": "gpt", "value": "Set the default Rust toolchain.\nMore information: <https://rust-lang.github.io/rustup>.\n" } ]
[ { "from": "human", "value": "Switch the default Rust toolchain (see `rustup help toolchain` for more information) via the `rustup-default` command" }, { "from": "gpt", "value": "`rustup default {{toolchain}}`" } ]
[ { "from": "human", "value": "Tell me about `rustup doc`." }, { "from": "gpt", "value": "Open the offline Rust documentation for the current toolchain.\nThere are a lot more documentation pages not mentioned here. See `rustup help doc` for more information.\nMore information: <https://rust-lang.g...
[ { "from": "human", "value": "Open the main page via the `rustup-doc` command" }, { "from": "gpt", "value": "`rustup doc`" } ]
[ { "from": "human", "value": "Open the documentation for a specific topic (a module in the standard library, a type, a keyword, etc.) via the `rustup-doc` command" }, { "from": "gpt", "value": "`rustup doc {{std::fs|usize|fn|...}}`" } ]
[ { "from": "human", "value": "Open the Rust Programming Language book via the `rustup-doc` command" }, { "from": "gpt", "value": "`rustup doc --book`" } ]
[ { "from": "human", "value": "Open the Cargo book via the `rustup-doc` command" }, { "from": "gpt", "value": "`rustup doc --cargo`" } ]
[ { "from": "human", "value": "Open the Rust Reference via the `rustup-doc` command" }, { "from": "gpt", "value": "`rustup doc --reference`" } ]
[ { "from": "human", "value": "Tell me about `rustup help`." }, { "from": "gpt", "value": "Display help on `rustup` and its subcommands.\nMore information: <https://rust-lang.github.io/rustup>.\n" } ]
[ { "from": "human", "value": "Display help via the `rustup-help` command" }, { "from": "gpt", "value": "`rustup help`" } ]
[ { "from": "human", "value": "Display help for a subcommand via the `rustup-help` command" }, { "from": "gpt", "value": "`rustup help {{subcommand}}`" } ]
[ { "from": "human", "value": "Tell me about `rustup-init.sh`." }, { "from": "gpt", "value": "Script to install `rustup` and the Rust toolchain.\nMore information: <https://forge.rust-lang.org/infra/other-installation-methods.html#rustup>.\n" } ]
[ { "from": "human", "value": "Download and run `rustup-init` to install `rustup` and the default Rust toolchain via the `rustup-init.sh` command" }, { "from": "gpt", "value": "`curl https://sh.rustup.rs -sSf | sh -s`" } ]
[ { "from": "human", "value": "Download and run `rustup-init` and pass arguments to it via the `rustup-init.sh` command" }, { "from": "gpt", "value": "`curl https://sh.rustup.rs -sSf | sh -s -- {{arguments}}`" } ]
[ { "from": "human", "value": "Run `rustup-init` and specify additional components or targets to install via the `rustup-init.sh` command" }, { "from": "gpt", "value": "`rustup-init.sh --target {{target}} --component {{component}}`" } ]
[ { "from": "human", "value": "Run `rustup-init` and specify the default toolchain to install via the `rustup-init.sh` command" }, { "from": "gpt", "value": "`rustup-init.sh --default-toolchain {{toolchain}}`" } ]
[ { "from": "human", "value": "Run `rustup-init` and do not install any toolchain via the `rustup-init.sh` command" }, { "from": "gpt", "value": "`rustup-init.sh --default-toolchain {{none}}`" } ]
[ { "from": "human", "value": "Run `rustup-init` and specify an installation profile via the `rustup-init.sh` command" }, { "from": "gpt", "value": "`rustup-init.sh --profile {{minimal|default|complete}}`" } ]
[ { "from": "human", "value": "Run `rustup-init` without asking for confirmation via the `rustup-init.sh` command" }, { "from": "gpt", "value": "`rustup-init.sh -y`" } ]
[ { "from": "human", "value": "Tell me about `rustup install`." }, { "from": "gpt", "value": "Install or update Rust toolchains.\nThis command is an alias of `rustup update`, but can only install/update one toolchain at a time.\nMore information: <https://rust-lang.github.io/rustup>.\n" } ]
[ { "from": "human", "value": "Install or update a specific toolchain (see `rustup help toolchain` for more information) via the `rustup-install` command" }, { "from": "gpt", "value": "`rustup install {{toolchain}}`" } ]
[ { "from": "human", "value": "Tell me about `rustup man`." }, { "from": "gpt", "value": "View the man page for a command managed by `rustup`.\nMore information: <https://rust-lang.github.io/rustup>.\n" } ]
[ { "from": "human", "value": "View the man page for a given command from the default toolchain via the `rustup-man` command" }, { "from": "gpt", "value": "`rustup man {{command}}`" } ]
[ { "from": "human", "value": "View the man page for a given command from the specified toolchain via the `rustup-man` command" }, { "from": "gpt", "value": "`rustup man --toolchain {{command}}`" } ]
[ { "from": "human", "value": "Tell me about `rustup`." }, { "from": "gpt", "value": "Install, manage, and update Rust toolchains.\nSome subcommands, such as `toolchain`, `target`, `update`, etc. have their own usage documentation.\nMore information: <https://rust-lang.github.io/rustup>.\n" } ]
[ { "from": "human", "value": "Install the nightly toolchain for your system via the `rustup` command" }, { "from": "gpt", "value": "`rustup install nightly`" } ]
[ { "from": "human", "value": "Switch the default toolchain to nightly so that the `cargo` and `rustc` commands will use it via the `rustup` command" }, { "from": "gpt", "value": "`rustup default nightly`" } ]
[ { "from": "human", "value": "Use the nightly toolchain when inside the current project but leave global settings unchanged via the `rustup` command" }, { "from": "gpt", "value": "`rustup override set nightly`" } ]
[ { "from": "human", "value": "Update all toolchains via the `rustup` command" }, { "from": "gpt", "value": "`rustup update`" } ]
[ { "from": "human", "value": "List installed toolchains via the `rustup` command" }, { "from": "gpt", "value": "`rustup show`" } ]
[ { "from": "human", "value": "Run `cargo build` with a certain toolchain via the `rustup` command" }, { "from": "gpt", "value": "`rustup run {{toolchain}} cargo build`" } ]
[ { "from": "human", "value": "Open the local Rust documentation in the default web browser via the `rustup` command" }, { "from": "gpt", "value": "`rustup doc`" } ]
[ { "from": "human", "value": "Tell me about `rustup override`." }, { "from": "gpt", "value": "Modify directory toolchain overrides.\nSee `rustup help toolchain` for more information about toolchains.\nMore information: <https://rust-lang.github.io/rustup>.\n" } ]