Improve help page consistency

This commit is contained in:
Ajeet D'Souza 2022-12-07 17:28:33 +05:30
parent d99e9b7d86
commit f74873b803
3 changed files with 7 additions and 11 deletions

View File

@ -21,7 +21,6 @@ in pkgs.mkShell {
pkgs.zsh pkgs.zsh
# Tools # Tools
pkgs.cargo-audit
pkgs.cargo-nextest pkgs.cargo-nextest
pkgs.mandoc pkgs.mandoc
pkgs.nixfmt pkgs.nixfmt

View File

@ -4,7 +4,7 @@ use std::path::PathBuf;
use clap::{Parser, ValueEnum, ValueHint}; use clap::{Parser, ValueEnum, ValueHint};
const ENV_HELP: &str = "ENVIRONMENT VARIABLES: const ENV_HELP: &str = "Environment variables:
_ZO_DATA_DIR Path for zoxide data files _ZO_DATA_DIR Path for zoxide data files
_ZO_ECHO Print the matched directory before navigating to it when set to 1 _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_EXCLUDE_DIRS List of directory globs to be excluded

View File

@ -83,9 +83,6 @@ fn run_fmt(nix_enabled: bool, check: bool) -> Result<()> {
fn run_lint(nix_enabled: bool) -> Result<()> { fn run_lint(nix_enabled: bool) -> Result<()> {
if nix_enabled { if nix_enabled {
// Run cargo-audit.
Command::new("cargo").args(["audit", "--deny=warnings"]).run()?;
// Run markdownlint. // Run markdownlint.
for result in Walk::new("./") { for result in Walk::new("./") {
let entry = result.unwrap(); let entry = result.unwrap();