GithubHelp home page GithubHelp logo

note-cli's Introduction

Note-CLI Tool

This tool is designed to provide a basic user interface to the command line to be used in conjunction with Git to maintain a repository and good commit information

Install

Clone the Repository: git clone [email protected]:tkottke90/note-cli.git

Run npm install npm install

Link bin folder to your terminal npm link

Usage

Once you have installed the tool, you can use by running this command in your terminal: update-notes <command>

Commands

  1. Exclude - The add files to git's exclude file (/.git/info/exclude)
  2. Commit - A command line to to walk through the creation and submittion of a commit

Exclude

This command will add files to the repositories exclude file. Files listed in the exclude file are ignored by git locally, but are not ignored outside of your local repository. This is a great place to put files that you know you will uniquely generate, such as:

  • Development Configuration Files
  • Debugging Files
  • Debugging Logs

To get started run the node-cli tool with the following command:

update-notes exclude

This command will check your local git repository for any untracked files:

exclude_screenshot

Using your keyboard (up and down to navigate, and space to select) select the files you wish to exclude. Once you have selected the files, click Enter to save your changes.

Commit

This command will walk through the commit process and generate a commit message for you with the following format:

<type>: <message>
## Git Commit Template v1.0
## Author: Thomas Kottke <[email protected]>
## Template supports the logging of information related to the ticket based on multiple git commit template philosophies

# Files committed:
	<list of files to be commited>

# Ticketing System Information
  ticket: <(optional) tracking ticket>

# Commit Summery:
  Why is the change necessary?
    <(optional) description of why the commit>
  How does it address the issue?
    <(optional) description of how the commit>
  What side effects does this change have?
    <(optional) description of possible side effects>

To get started, run the note-cli tool with the following command:

update-notes commit

Using your keyboard (up and down to navigate, and space to select) select the files you wish to commit. Once you have selected the files, click Enter to save your changes.

commit_screenshot1

Select a type of commit:

commit_screenshot2

Enter a commit message:

commit_screenshot3

Optionally enter a ticket number if you are using a ticketing system with you project:

commit_screenshot4

This is also a great place to reference other github items such as issues, pull requests, or commits.

Github Documentation

Optionally enter a description of why the commit is necessary:

commit_screenshot5

Optionally enter a description of how the commit fixes any issues:

commit_screenshot6

Optionally enter a description of any possible side effects that you think may come as a result of this commit:

commit_screenshot7

The script will generate your commit message and display it for your review:

commit_screenshot8

To confirm your changes enter 'y' and the commit will be submitted

note-cli's People

Contributors

tkottke90 avatar

Watchers

James Cloos avatar

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.