Giter Site home page Giter Site logo

repo_deleter's Introduction

RepoDeleter

Because deleting many repos from a cluttered Github profile is a major pain...

Installation

  • Install Elixir (1.6 or higher)
  • Run mix deps.get

Configuration

  • Add your Github Personall Access Token as an environment variable:
  • Also in your environment, set GITHUB_USERNAME to your Github username (e.g. bdfinlayson)

Usage

The CLI accepts a number of switches:

  • --totalcount: use this to view a count of the total number of repos in your Github account
  • --list [number]: use this to list a certain number of repos from your account
  • --delete [repo_name]: use this to delete a specific repo from your account
  • --deleteAll --confirm: use this to cycle through all your repos and confirm whether you want to delete each one

Example Usage

  • Running ./repo_deleter --deleteAll --confirm will give you the following output:
Do you want to delete this repo?: initialized-project
yes or no? y


Repository initialized-project successfully destroyed!
You now have this many respositories remaining:
+------------+-----+
| totalCount | 121 |
+------------+-----+

Do you want to delete this repo?: new-project
yes or no? y


Repository new-project successfully destroyed!
You now have this many respositories remaining:
+------------+-----+
| totalCount | 120 |
+------------+-----+
  • Running ./repo_deleter --list 10 will give you the following output:
+----------------------------------+----------------------------+-----------+
| id                               | name                       | updatedAt |
| MDEwOlJlG9zaXRvcnkyOTM2NzYzOQ==  | savings-multiplied-metroui | 2015-1-19 |
| MDEwOlJcG9zaXRvcnkyOTk3OTMwNA==  | fivedayforecast            | 2015-1-30 |
| MDEwOllcG9zaXRvcnkzMDQ2NDkwOA==  | sampleapplicat.com         | 2015-5-1  |
| MDEwOJlcG9zaXRvcnkzMDU1ODczMw==  | square-painter-app         | 2015-2-25 |
| MDEwlJlcG9zaXRvcnkzMDU1OTQzNA==  | phone-book-app             | 2015-2-12 |
| MDEOlJlcG9zaXRvcnkzMDc2NDE0NA==  | petmate                    | 2015-2-20 |
| MDwOlJlcG9zaXRvcnkzMDg5NzM5OQ==  | flickr-api-app             | 2015-2-17 |
| MEwOlJlcG9zaXRvcnkzMDk0NzYxMg==  | random-circle-color-app    | 2015-2-18 |
| DEwOlJlcG9zaXRvcnkzMDk3MTE1NA==  | simple-quiz-app            | 2015-2-18 |
| DEwOlJlcG9zaXRvcnkzMTAzMDU5Mg==  | student-object-app         | 2015-2-19 |
+----------------------------------+----------------------------+-----------+
  • Running ./repo_deleter --delete savings-multiplied-metroui will delete the repo and output:
Repository savings-multiplied-metroui successfully destroyed!
You now have this many respositories remaining:
+------------+-----+
| totalCount | 119 |
+------------+-----+

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.