Coder Social home page Coder Social logo

lines-of-gode's Introduction

Lines of Gode

lines-of-gode is a CLI tool to count how many lines of code you have changed across your repositories (or those where you contributed). It's inspired by Jothin-kumar/lines-of-code.

Using it

To use it, you can follow two ways: running a binary or building from source.

NOTE: You have to create a Personal Access Token for using lines-of-gode. It's mostly GitHub's security reasons and you can do it in less than five minutes, head up to Settings and create a new token with some permissions (you may use it for other things, but lines-of-gode only requires access to your repositories and your user).

Running a binary

This is the easiest one, just head to the Releases section and download the executable file. Once you have it, run it from your terminal with ./lines-of-gode. Running it without arguments will display the help section.

Building from source

The hardest way, but maybe the one you will have to follow if the binary is not available. You're going to need a Go compiler (preferably 1.13+, I use 1.18 for developing but anything over 1.13 should be fine) and a little bit of experience with the terminal.

So, once you have the requirements, clone this repository with

git clone https://github.com/Ti7oyan/lines-of-gode

or if you use github-cli.

gh repo clone Ti7oyan/lines-of-code

Then, open the folder with a terminal (or just run cd to it), build the CLI with go build and... that's it!

But, if you want to use it across your OS, you will have to install it with go install and, if you didn't have the GOPATH set, run export PATH=$PATH:$HOME/go/bin.

With all of this, you can now run lines of gode from anywhere.

Contributing

I'm just starting learning Go so, any tips for code style, refactor and general observations are really appreciated, as well as direct contribution!

Copyright (c) 2022 Ticiano Morvan

lines-of-gode's People

Contributors

ticianomorvan avatar

Watchers

 avatar

lines-of-gode's Issues

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.