Skip to content

sanurb/mkrepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License People Stars Forks Watches Last Updated

Ready to go repos from the CLI 🏎️💨

mkrepo is a simple CLI tool that enhances the functionality of the GitHub CLI to streamline the creation of repositories. By handling setup tasks such as initializing the repository and setting up remotes, mkrepo allows developers to start coding immediately without worrying about initial setup chores.

Table of Contents

✨ Features

  • Automates the creation and setup of GitHub repositories.
  • Configures remote origin for immediate push capability.
  • Optional creation of public or private repositories.

⚡ Setup

⚙️ Requirements

💻 Installation

Install mkrepo using Go:

go install github.com/sanurb/mkrepo@latest

🚀 Usage

mkrepo offers various functionalities to streamline working with GitHub repositories directly from your command line. Below are the commands available:

Basic Commands

  • Create Repository
    mkrepo <repoName> [options]
    Create a new repository based on specified options. Refer to the Options section for more details.

Listing Organizations

  • List Organizations

    mkrepo list-orgs [--limit <int>]

    List the GitHub organizations associated with the authenticated user. By default, it lists 30 organizations but you can specify more with the --limit option.

    Examples

    • List the first 30 organizations:
      mkrepo list-orgs
    • List up to 100 organizations:
      mkrepo list-orgs --limit 100

Options

Here ares the available options for the mkrepo command:

Option Description Default Required
<repoName> The name of the new repository to create. None Yes
[templateName] The name of the template repository to use. 'bare-minimum' No
[description] A brief description of the repository. 'Short Sweet Headline 🎇🎉' No
--public Include this flag to make the repository public. Omit it for a private repository. Private No
--org Specify the organization under which the repository will be created. None No
--limit Used with list-orgs to specify the maximum number of organizations to list. 30 No

🧑‍💻 Behind The Code

🌈 Inspiration

The inspiration for mkrepo came from the need to simplify repetitive tasks faced by developers when setting up new projects on GitHub.

💡 Challenges/Learnings

  • Key learnings include mastering Go's CLI framework, Cobra

⭐ hit the star button if you found this useful ⭐

Source | LinkedIn | Other Projects

About

⚡Ready to go repos from the CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages