GithubHelp home page GithubHelp logo

c's Introduction

c

Project information

Write, view, edit and delete comments on files and directories, all from the command line.

Authored by Djordje Lukic.
Original idea by Jonovono.


Installation

Install the module globally with npm install c -g.


Commands

Usage: c [-l  | list <DIRECTORY|FILE>]
         [-rm | remove <DIRECTORY|FILE>]
         [-s  | set <DIRECTORY|FILE> <COMMENT>]
         [-h  | help]
         [-v  | version]

Options:
  list    | -l     Lists all the comments for the specified directory.
  set     | -s     Sets or overwrites a new comment for the file|directory.
  remove  | -rm    Deletes the comment for the file|directory.
  help    | -h     Shows the help menu.
  version | -v     States the version.

Usage

-s or set and -l or list

Setting and listing comments gif

Example:

$ c set . "What a great utility!"
$ c list .

Output:

"What a great utility!" was applied to "." successfully.

./           What a great utility!
../
SomeDir/
SomeFile.ext

Example:

$ c -s someDir "Another comment"
$ c -l .

Output:

"Another comment" was applied to "someDir" successfully.

./           What a great utility!
../
SomeDir/     Another comment
SomeFile.ext

-rm or remove

Removing comments gif

Example:

$ c remove someDir
$ c list .

Output:

someDir comment was deleted successfully.

./           What a great utility!
../
SomeDir/
SomeFile.ext

-v or version and -h or help

Alternative operations gif


Operating in child and parent directories

Complex usage demo gif

Releasing

To release a new version of c simply do:

$ git tag -a vVERSION -m "Version VERSION"
# For example:
$ git tag -a v1.0.0 -m "Version 1.0.0"

This will create a new release on github and publish the package on npm

License

MIT: http://rumpl.mit-license.org

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.