Skip to content

Bmg09/fs-manager-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-cli

Usage

View Directory Tree

To print a tree of the current directory:

fs-manager-cli view-tree

Options

  • -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 backup

Options

  • -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 restructure

Options

  • -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 joke

Options

  • -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-tree

View Tree of Specified Path

fs-manager-cli view-tree -p /usr/local

Create a Backup

fs-manager-cli backup

Create a Backup of Specified Path

fs-manager-cli backup -p /usr/local

Restructure Files

fs-manager-cli restructure -p /usr/local -ext jpg,png -e node_modules 

Fetch a Joke for John

fs-manager-cli joke -n John

Fetch a Joke About Cats

fs-manager-cli joke -s cats

License

MIT


Feel free to contribute and raise issues. Enjoy using fs-manager-cli!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •