questions

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2018 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BitbucketCredential = []*survey.Question{
	{
		Name: "username",
		Prompt: &survey.Input{
			Message: "Enter your bitbucket Username:",
			Help:    "Please give your bitbucket Username",
		},
		Validate: survey.Required,
	},
	{
		Name: "password",
		Prompt: &survey.Password{
			Message: "Enter your bitbucket Password:",
		},
		Validate: survey.Required,
	},
}
View Source
var CommitMessage = []*survey.Question{
	{
		Name: "commitMessage",
		Prompt: &survey.Input{
			Message: "Commit Message: ",
			Default: "Initial Commit",
		},
		Validate: survey.Required,
	},
}
View Source
var CreateGitIgnore = []*survey.Question{
	{
		Name: "gitignorefile",
		Prompt: &survey.Editor{
			Message:       "Please add files you want to ignore for git",
			Default:       "node_modules\n*.gem\n*.rbc\n.vscode\n.idea\n",
			HideDefault:   true,
			AppendDefault: true,
		},
	},
}
View Source
var GithubCredential = []*survey.Question{
	{
		Name: "username",
		Prompt: &survey.Input{
			Message: "Enter your github username or Email:",
			Help:    "Please give your github username or email address",
		},
		Validate: survey.Required,
	},
	{
		Name: "password",
		Prompt: &survey.Password{
			Message: "Enter your github Password:",
		},
		Validate: survey.Required,
	},
}

GithubCredential ask for username and password for basic auth

View Source
var GithubRepoInfo = []*survey.Question{
	{
		Name: "reponame",
		Prompt: &survey.Input{
			Message: "Enter name of the repository:",
			Default: utils.GetCurrentWorkingDirName(),
		},
		Validate: survey.Required,
	},
	{
		Name: "repodescription",
		Prompt: &survey.Input{
			Message: "Enter description of the repository:",
		},
	},
	{
		Name: "repotype",
		Prompt: &survey.Select{
			Message: "Public or Private:",
			Options: []string{"Public", "Private"},
			Default: "Public",
		},
	},
}
View Source
var GitlabCredential = []*survey.Question{
	{
		Name: "username",
		Prompt: &survey.Input{
			Message: "Enter your GitLab Username:",
			Help:    "Please give your GitLab Username",
		},
		Validate: survey.Required,
	},
	{
		Name: "password",
		Prompt: &survey.Password{
			Message: "Enter your GitLab Password:",
		},
		Validate: survey.Required,
	},
}
View Source
var GitlabToken = []*survey.Question{
	{
		Name: "token",
		Prompt: &survey.Password{
			Message: "Enter your GitLab Token:",
			Help:    "You need to provide gitlab OAuth token here",
		},
		Validate: survey.Required,
	},
}
View Source
var ServiceName = []*survey.Question{
	{
		Name: "servicename",
		Prompt: &survey.Select{
			Message: "Pleasse select a service you want to use:",
			Options: []string{"GitHub", "BitBucket", "GitLab"},
			Default: "GitHub",
		},
	},
}

ServiceName defindes question for servicename

View Source
var UserInfo = []*survey.Question{
	{
		Name: "name",
		Prompt: &survey.Input{
			Message: "Enter Your name:",
			Help:    "Please give your name for configure git commit",
		},
		Validate: survey.Required,
	},
	{
		Name: "email",
		Prompt: &survey.Input{
			Message: "Enter your Email:",
			Help:    "Please give your email for configure git commit",
		},
		Validate: survey.Required,
	},
}
View Source
var WantsGitIgnore = []*survey.Question{
	{
		Name: "gitignore",
		Prompt: &survey.Confirm{
			Message: "You want to add .gitignore file?",
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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