prompt

package
v0.0.0-...-9496831 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package prompt handles the prompt for creation of repository in GitHub. It takes in the GitHub personal access token to create your repo and then do an init commit with a README.md and .gitignore file. Currently only 6 tempaltes i.e. Node, Android, Golang, Java, Python, Rails. More templates will be added through Command Line arguments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitIgnorePrompt

func GitIgnorePrompt() string

GitIgnorePrompt prompts the user to select the gitignore template and then calls gitIgnoreContent to return the content of the file

func InitCommit

func InitCommit(pat string) (string, error)

InitCommit does the following things 1. Clone the remote repo and store it to the location 2. Get the gitignore file from GitHub if avaliable and write it to your the folder. 3. Init the commit with a commit msg

func PushCommit

func PushCommit(pat string) (string, error)

PushCommit pushses the InitCommit

func RepoPrompt

func RepoPrompt(pat string) bool

RepoPrompt gives the prompt related to Repository

Types

This section is empty.

Jump to

Keyboard shortcuts

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