1.0.7 • Published 5 years ago

chararos v1.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Chararos

oclif Version Downloads/week License

Description

Usefull CLI commands for handle standard projects issues, like remove unecessary files or duplicate/rename files and folders

With Chararos you can:

  • Destroy all folders that fill space.
    • Select a target directory and remove all projects temporary files, like node_modules, bin or obj directory. Or choose your own directory to delete
  • Rename all occurence of string, in directory or file name, from provided path
    • Select a target directory, a name and his replace.

Install

$ npm i -g chararos

Usage

$ chararos clean <directory> <opts>
$ chararos rename <directory> <opts>
---
or
---
$ npx chararos <directory> <opts>
$ npm install -g chararos
$ chararos COMMAND
running command...
$ chararos (-v|--version|version)
chararos/1.0.7 win32-x64 node-v10.16.0
$ chararos --help [COMMAND]
USAGE
  $ chararos COMMAND
...

Generic commands

Options

CommandDescriptionSampleDefault
-h / --helpGet helpchararos -h
--versionGet CLI versionchararos -v/version

Clean Command

Clean Arguments

  • DIRECTORY set target directory. [REQUIRED]

Sample command chararos clean 'C:\Users\<usr_name>\Desktop\Projects' or chararos clean .

Clean Options

CommandDescriptionSampleDefault
-h / --helpGet helpchararos clean -h
--versionGet CLI versionchararos clean --version
-d / --dryrunDry run process for getting forecast about folders to be removedchararos clean <dir> -dfalse
-n / --nodeSetup for remove node_moduleschararos clean <dir> -nfalse
-v / --vsSetup for remove bin and objchararos clean <dir> -vfalse
-f / --folderLooking for a specific folder to removechararos clean <dir> -f=<folder>

Arguments 'rename'

  • DIRECTORY set target directory. [REQUIRED]
  • FROMNAME set name to replace. [REQUIRED]
  • TONAME set new name. [REQUIRED]

Sample command chararos rename 'C:\Users\<usr_name>\Desktop\Projects' 'x' 'y' or chararos rename . 'x' 'y'

Options

CommandDescriptionSampleDefault
-h / --helpGet helpchararos rename -h
-v / --versionGet CLI versionchararos rename --v
-d / --dryrunDry run process for getting forecast about folders to be removedchararos rename <dir> -dfalse
-s / --strictLooking for strict matchchararos rename <dir> <from> <to> -sfalse

chararos clean DIRECTORY

clean folder from unnecessary files

USAGE
  $ chararos clean DIRECTORY

ARGUMENTS
  DIRECTORY  directory

OPTIONS
  -d, --dryrun         make a dry run
  -f, --folder=folder  custom target folder to delete
  -h, --help           show CLI help
  -n, --node           cleanup node projects
  -v, --vs             cleanup vs projects
  --version            show CLI version

EXAMPLE
  $ chararos clean '%YOUR-PATH%' -v
  removing visual studio files

See code: src\commands\clean.ts

chararos help [COMMAND]

display help for chararos

USAGE
  $ chararos help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

chararos rename DIRECTORY FROMNAME TONAME

rename folders name

USAGE
  $ chararos rename DIRECTORY FROMNAME TONAME

ARGUMENTS
  DIRECTORY  directory
  FROMNAME   from name
  TONAME     to name

OPTIONS
  -d, --dryrun  make a dry run
  -h, --help    show CLI help
  -s, --strict  strict search
  --version     show CLI version

EXAMPLE
  $ chararos rename '%YOUR-PATH%' "x" "y"
  rename folders from 'x' to 'y'

See code: src\commands\rename.ts

Contributing

Feel free to add new feature and enhancement

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago