mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2025-01-15 19:26:54 +00:00
Improve help page consistency
This commit is contained in:
parent
d99e9b7d86
commit
f74873b803
@ -21,7 +21,6 @@ in pkgs.mkShell {
|
||||
pkgs.zsh
|
||||
|
||||
# Tools
|
||||
pkgs.cargo-audit
|
||||
pkgs.cargo-nextest
|
||||
pkgs.mandoc
|
||||
pkgs.nixfmt
|
||||
|
@ -4,13 +4,13 @@ use std::path::PathBuf;
|
||||
|
||||
use clap::{Parser, ValueEnum, ValueHint};
|
||||
|
||||
const ENV_HELP: &str = "ENVIRONMENT VARIABLES:
|
||||
_ZO_DATA_DIR Path for zoxide data files
|
||||
_ZO_ECHO Print the matched directory before navigating to it when set to 1
|
||||
_ZO_EXCLUDE_DIRS List of directory globs to be excluded
|
||||
_ZO_FZF_OPTS Custom flags to pass to fzf
|
||||
_ZO_MAXAGE Maximum total age after which entries start getting deleted
|
||||
_ZO_RESOLVE_SYMLINKS Resolve symlinks when storing paths";
|
||||
const ENV_HELP: &str = "Environment variables:
|
||||
_ZO_DATA_DIR Path for zoxide data files
|
||||
_ZO_ECHO Print the matched directory before navigating to it when set to 1
|
||||
_ZO_EXCLUDE_DIRS List of directory globs to be excluded
|
||||
_ZO_FZF_OPTS Custom flags to pass to fzf
|
||||
_ZO_MAXAGE Maximum total age after which entries start getting deleted
|
||||
_ZO_RESOLVE_SYMLINKS Resolve symlinks when storing paths";
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
#[clap(
|
||||
|
@ -83,9 +83,6 @@ fn run_fmt(nix_enabled: bool, check: bool) -> Result<()> {
|
||||
|
||||
fn run_lint(nix_enabled: bool) -> Result<()> {
|
||||
if nix_enabled {
|
||||
// Run cargo-audit.
|
||||
Command::new("cargo").args(["audit", "--deny=warnings"]).run()?;
|
||||
|
||||
// Run markdownlint.
|
||||
for result in Walk::new("./") {
|
||||
let entry = result.unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user