orc_test

command module
v0.0.0-...-be19f74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2023 License: MIT Imports: 2 Imported by: 0

README

ORC - Organization Repo Cloner

test-img lint-img version-img

alt text

Introduction

This is a Command Line Interface (CLI) application written in Golang that allows users to clone repositories from a specified organization on GitHub. Additionally, the application can list the organizations that the user has entered and list the repositories of the selected organization.

Installation

Before using this application, you need to have Golang installed on your system. You also need to have a GitHub account and generate an access token from your account settings.

go install github.com/Aykutfgoktas/orc

Usage

Without using with any flag, it will list the repositories from the default organization.

Flag Flag Long Description
-a -add add the organization
-l --list list the organization
-s --set set the default organization

Configuration will be stored in $HOME/.orc.conf.json file.

Linting

  • Install golangci-lint

  • You can run golang-lint local environment before committing the code.

  • It will read the rules from the .golangci.yml file.

  make lint

Testing

  • Ginkgo is used for the golang bdd testing framework.
  • You can trigger commands on the makefile for easy execution of unit.
 make test

Contributing

Contributions to this project are welcome. To contribute, please fork this repository, make your changes, and submit a pull request.

Bug Reports and Support

If you encounter any bugs or issues with this application, please open an issue on the GitHub repository page.

Backstory

When I started a new job, I found myself frequently needing to clone Git repositories to my local machine. However, this involved opening the repository's webpage, copying the clone URL, and then pasting it into my terminal. This process was time-consuming and error-prone, as I sometimes copied the wrong URL or forgot to include the ".git" extension.

To address this problem, I decided to create a command-line interface (CLI) tool that would automate the process of cloning Git repositories. My goal was to create a simple, easy-to-use tool that would save me time.

To be honest, I do not know if there are some other applications that solve the same problem. However, I just want to create my own to solve my problem and any feedback will be appreciated thank you.

In the future, I plan to continue refining the tool and adding new features, such as support for other version control systems and integration with code review tools. I also hope to share the tool with other developers and contribute to the open-source community.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL