4.0.27 • Published 2 years ago
fs-manager-cli v4.0.27
FS-Manager-CLI
Description
fs-manager-cli is a command-line tool built to make your life easier by fetching jokes and printing directory trees directly from your terminal.
Features
- Fetch a random joke or based on a search term
- View the directory tree of any given path
Installation
To install fs-manager-cli, run:
npm install -g fs-manager-cliUsage
View Directory Tree
To print a tree of the current directory:
fs-manager-cli view-treeOptions
-p, --path <path>: Specify a path to view its directory tree.-e, --excludeFolder <excludeFolder>: Exclude a specific folder from the tree.
Create a JSON dump of directory tree
Creates a JSON backup of the current|path directory:
fs-manager-cli backupOptions
-p, --path <path>: Specify a path to view its directory tree.-e, --excludeFolder <excludeFolder>: Exclude a specific folder from the tree.
Restructure files using MIME-TYPE
Restructures files using MIME-TYPE of given type:
fs-manager-cli restructureOptions
-p, --path <path>: Add a path-e, --excludeFolder <excludeFolder>:Add a folder name which you don't want to restructure-ext, --extension <extension>: Add a extensions which you want to restructure
Fetch a Joke
To fetch a random joke:
fs-manager-cli jokeOptions
-n, --name <name>: Your name to personalize the joke.-s, --search <search>: Search term to fetch a specific joke.
Examples
View Tree of Current Directory
fs-manager-cli view-treeView Tree of Specified Path
fs-manager-cli view-tree -p /usr/localCreate a Backup
fs-manager-cli backupCreate a Backup of Specified Path
fs-manager-cli backup -p /usr/localRestructure Files
fs-manager-cli restructure -p /usr/local -ext jpg,png -e node_modules Fetch a Joke for John
fs-manager-cli joke -n JohnFetch a Joke About Cats
fs-manager-cli joke -s catsLicense
MIT
Feel free to contribute and raise issues. Enjoy using fs-manager-cli!