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
# Tools
pkgs.cargo-audit
pkgs.cargo-nextest
pkgs.mandoc
pkgs.nixfmt

View File

@ -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(

View File

@ -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();