Skip to content

Commit

Permalink
test: show debug log
Browse files Browse the repository at this point in the history
README.md: layout
  • Loading branch information
kaelzhang committed Nov 28, 2024
1 parent 7517662 commit 1e282f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
uname -a
npm install
npm run build --if-present
npm test
npm test:dev
env:
CI: true
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1e282f3

Please sign in to comment.