utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskDatabase

func AskDatabase(in *os.File) string

AskDatabase is a function which asks a user which database they will use and returns the answer

func AskGithub

func AskGithub(in *os.File) string

AskGithub is a function which asks a user if they will use github

func AskProjectName

func AskProjectName(in *os.File) string

AskProjectName function

func AskRubocop

func AskRubocop(in *os.File) string

AskRubocop is a function which asks a user if they will use rubocop and then returns the answer of the user

func AskTests

func AskTests(in *os.File) (string, string)

AskTests is a function which asks if a user will use tests

func AskWorkingDirectory

func AskWorkingDirectory(in *os.File) string

AskWorkingDirectory function

func Copy

func Copy(src, dst string)

Copy function to copy files

func CreateGithubActionsDirectory

func CreateGithubActionsDirectory(isGithub, wrkDr, projectName string)

CreateGithubActionsDirectory is a function which creates github actions directory

func CreateProjectDirectory

func CreateProjectDirectory(workingDir, projectName string) string

CreateProjectDirectory function is to create projec

func DisplayLastCommands

func DisplayLastCommands() string

DisplayLastCommands func shows a user next steps

func GetHomeDirectory

func GetHomeDirectory() string

GetHomeDirectory is used to get home directory

func IsDirectoryExists

func IsDirectoryExists(directory string) bool

IsDirectoryExists function is used to prove if a passed string stands for a directory

func WriteToFile

func WriteToFile(file, stringToWrite string)

WriteToFile is a function which used to write to file

Types

This section is empty.

Jump to

Keyboard shortcuts

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