From 1e282f372a183c0a71e6d3a49051caadc65cb5f4 Mon Sep 17 00:00:00 2001 From: Kael Zhang Date: Thu, 28 Nov 2024 11:35:22 +0800 Subject: [PATCH] test: show debug log README.md: layout --- .github/workflows/nodejs.yml | 2 +- README.md | 22 +++++++++------------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e221706..7540c08 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -22,6 +22,6 @@ jobs: uname -a npm install npm run build --if-present - npm test + npm test:dev env: CI: true diff --git a/README.md b/README.md index d88e147..3100ab2 100644 --- a/README.md +++ b/README.md @@ -27,19 +27,15 @@ The project was initially developed for Mac OS X, and then tested on Linux. For those implemented options, safe-rm will act **exactly the same** as the original `rm` command -`-i`, `--interactive`: Prompts you to confirm before removing each file. - -`-I`, `--interactive=once`: Prompts only once before removing more than three files or when recursively removing directories. - -`-f`, `--force`: Removes files without prompting for confirmation, ignoring nonexistent files and overriding file protections - -`-r`, `-R`, `--recursive`, `--Recursive`: Removes directories and their contents recursively. Required for deleting directories. - -`-v`, `--verbose`: Displays detailed information about each file or directory being removed. - -`-d`, '--directory': Removes empty directories. `safe-rm` can handle empty directories specifically with this flag. - -`--`: Used to indicate the end of options. Useful if a filename starts with a `-`. +| Option | Brief | Descriptions | +| ------ | ----- | ------------ | +| `-i`, `--interactive` | **Interactive** | Prompts you to confirm before removing each file | +| `-I`, `--interactive=once` | **Less Interactive** | Prompts only once before removing more than three files or when recursively removing directories | +| `-f`, `--force` | **Force** | Removes files without prompting for confirmation, ignoring nonexistent files and overriding file protections | +| `-r`, `-R`, `--recursive`, `--Recursive` | **Recursive** | Removes directories and their contents recursively. Required for deleting directories | +| `-v`, `--verbose` | **Verbose** | Displays detailed information about each file or directory being removed | +| `-d`, '--directory' | **Remove Empty Directories** | `safe-rm` can check and only remove empty directories specifically with this flag | +| `--` | **End of Options** | Used to indicate the end of options. Useful if a filename starts with a `-` | Combined short options are also supported, such as