Giter VIP home page Giter VIP logo

gitclishell's Introduction

GitCliShell

Navigate the github site using the terminal emulator.

How to build

execute this command in your terminal:

mvn package -Dmaven.test.skip=true

after that the jar file should be in the target folder.

How to use it

launch the jar by doing:

java -jar gitCliShell-0.8.7.jar

GitCli has the following commands:

  • clone: clones a git repository given a repository, a username and a branch
  • info-branch: gets informations about all the possible branches in a git repository
  • info-repository: gets informations of the folders inside a git repository
  • info-user: gets informations about a specific user such as followers or personal repositories
  • search-repository: searchs for a git repository given a specific term to search and a number of page (example 1=first page, 2=second page and so on...)
  • search-user: search for a specific user
  • navigate: checks a path in the repository
  • check-file: shows the content of a file in the repository
  • create-database: creates the local database
  • insert-author: insert the name of the author
  • assign-repository: assign a repository to an author
  • search-autor: search for an author in the database
  • search-repository-author: gets a list of repositories given an author's name

Below you can see some examples on how to use these commands.

clone

clone GitCli FrancescoDiSalesGithub /home/myuser/newgitcli test

If the branch argument is omitted then the project will be cloned from the master branch

info-branch

info-branch GitCli FrancescoDiSalesGithub 

info-repository

If you want to know the content of the files and folder in a specific branch do:

info-repository GitCliShell FrancescoDiSalesGithub test

Otherwise like the clone command omitt the branch argument

info-user

info-user FrancescoDiSalesGithub

search-repository

This command shows only the first page

search-repository postgresql 

This command shows the second page (actually each integer is a specific page you want to see)

search-repository postgresql 2

search-user

This command shows only the first page

search-user johndoe

This command shows the second page (actually each integer is a specific page you want to see)

search-user johndoe 2

navigate

Supposing you have already checked the main page of the repository with the info command and you want to check a folder

navigate FrancescoDiSalesGithub/GitCliShell/tree/master/.github

check-file

check-file /FrancescoDiSalesGithub/GitCliShell/blob/master/LICENSE
 

create-database

create-database mylocaldb /home/myusername/mygitdb/
 

insert-author

insert-author FrancescoDiSalesGithub /home/myusername/mygitdb/mylocaldb.db
 

search-author

search-author FrancescoDiSalesGithub /home/myusername/mygitdb/mylocaldb.db
 

assign-repository

assign-repository FrancescoDiSalesGithub GitCliShell https://github.com/FrancescoDiSalesGithub/GitCliShell  /home/myusername/mygitdb/mylocaldb.db
 

search-repository-author

search-repository-author FrancescoDiSalesGithub /home/myusername/mygitdb/mylocaldb.db
 

gitclishell's People

Contributors

dependabot-preview[bot] avatar francescodisalesgithub avatar

Stargazers

 avatar

Watchers

 avatar

gitclishell's Issues

Build failed jdk 11

mvn package -Dmaven.test.skip=true

[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ gitCliShell ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ gitCliShell ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to C:\GitCliShell\GitCliShell\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 41.010 s
[INFO] Finished at: 2020-11-03T20:31:05+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project gitCliShell: Fatal error compiling: error: invalid target release: 14 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Solved with <java.version>11</java.version> in the pom.xml

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.