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.
- Fetch a random joke or based on a search term
- View the directory tree of any given path
To install fs-manager-cli
, run:
npm install -g fs-manager-cli
To print a tree of the current directory:
fs-manager-cli view-tree
-p, --path <path>
: Specify a path to view its directory tree.-e, --excludeFolder <excludeFolder>
: Exclude a specific folder from the tree.
Creates a JSON backup of the [current|path] directory:
fs-manager-cli backup
-p, --path <path>
: Specify a path to view its directory tree.-e, --excludeFolder <excludeFolder>
: Exclude a specific folder from the tree.
Restructures files using MIME-TYPE of given type:
fs-manager-cli restructure
-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
To fetch a random joke:
fs-manager-cli joke
-n, --name <name>
: Your name to personalize the joke.-s, --search <search>
: Search term to fetch a specific joke.
fs-manager-cli view-tree
fs-manager-cli view-tree -p /usr/local
fs-manager-cli backup
fs-manager-cli backup -p /usr/local
fs-manager-cli restructure -p /usr/local -ext jpg,png -e node_modules
fs-manager-cli joke -n John
fs-manager-cli joke -s cats
MIT
Feel free to contribute and raise issues. Enjoy using fs-manager-cli
!