https://github.com/emrearmagan/go-repogenerator
https://github.com/emrearmagan/go-repogenerator
automation generate github go golang repository repository-plugin repository-service
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/emrearmagan/go-repogenerator
- Owner: emrearmagan
- Created: 2019-06-03T21:49:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-13T23:19:27.000Z (about 6 years ago)
- Last Synced: 2023-03-05T09:57:18.016Z (over 2 years ago)
- Topics: automation, generate, github, go, golang, repository, repository-plugin, repository-service
- Language: Go
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Repo Generator
Creates a repository for you on github using Chromedp and opens it with your given IDE.## Installation
The easiest way to use the HVV API in your Go project is to install it using **go get**:
```go
go get https://github.com/emrearmagan/Go-RepoGenerator
```
Before running, you should set the config values in **config.go**
```go
func GetConfig() *config {
return &config{
WorkingDirectory: "/Users/your/work/space/src/",
GitUrl: "https://github.com",
Username: "USERNAME",
Password: "PASSWORD",
IDE: "/usr/local/bin/goland",
}
}
```## Usage
* Go to your home directory using ```cd ~```
* Create a new bash script with touch ```.my_commands.sh```Open the file you've just created in any text editor you like and paste the following code:
```
#!/bin/bash#Creates a Git Repository
function init() {
cd ~/path/to-your-work/space/Go-RepoGenerator
go run main.go $1
cd ~/path/to-your-work/space/$1
}
```* nano ~/.bash_profile and paste the following code: ```source ~/.my_commands.sh```
* Run ```init your_repository_name``` and it will automatically create and init a git repository for you :)## Author
Emre Armagan, [email protected]