Giter VIP home page Giter VIP logo

cli-util's Introduction

Cli util project

Index


Getting started

app@app:~$ git clone https://github.com/zacscoding/cli-util.git
app@app:~$ cd cli-util  
app@app:~/cli-util$ mvn clean package  
app@app:~/cli-util$ java -jar target cli-util.git

Commands : [ git-status | git-diff ]

Git cli util

Index


Git status

; Checks added files & untracked files from path with recursive depth

Options

usage: java -jar cli-util git-status

Example of Using cli-util :)
 -d,--depth <arg>   Will check with depth. default value is 1
 -h,--help          Display help messages
 -p,--path <arg>    trace from this path
 -s,--show <arg>    show added & untracked files. default false

Example

$ java -jar target\cli-util.jar git-status -p C:\git\zaccoding -d 1 -s false

----------------------------------------------------------------------------
>> Check repository [ blockchain ] > remain state & un tracked file. added : 1 | un tracked : 2
----------------------------------------------------------------------------
>> Check repository [ blockchain-collector ] > empty stage files

Git diff

; Compare the commits in local repository and remote repositories

Options

usage: java -jar cli-util git-diff

Example of Using cli-util :)
 -h,--help          display help messages
 -d,--depth <arg>   will check with depth. default value is 1
 -p,--path <arg>    trace from this path

Example

$ java -jar target\cli-util.jar git-diff -p C:\git\zaccoding -d 1

----------------------------------------------------------------------------
>> Check repository [ blockchain-collector ] > synchronized
----------------------------------------------------------------------------
>> Check repository [ kafka-learn ]
>>> diff ref refs/heads/master. local : 7ff1c30da1471aff7b61b8264f2d81b42c911655 | remote origin-https://github.com/zacscoding/kafka-learn.git : f104f49d6e2ede8d355701e9e508e04db5ca8fd6
----------------------------------------------------------------------------
>> Check repository [ blockchain-jsonrpc ]> empty remotes
----------------------------------------------------------------------------
>> Check repository [ git-temp ]
>>> Cannot connect repository. url : https://github.com/zacscoding/git-temp.git
----------------------------------------------------------------------------
>> Check repository [ ethereum-explorer ]
>>> Not exist 2 branches at local compared with https://github.com/zacscoding/ethereum-explorer.git

cli-util's People

Contributors

zacscoding avatar

Stargazers

 avatar

Watchers

 avatar  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.