go-james: github.com/pieterclaerhout/go-james/internal/creator Index | Files

package creator

import "github.com/pieterclaerhout/go-james/internal/creator"

Index

Package Files

creator.go docker_file.go docker_ignore.go git_ignore.go github_action.go license.go readme.go source_files.go vscode.go vscode_launch_config.go vscode_settings.go vscode_task.go

type Creator Uses

type Creator struct {
    common.CommandRunner
    common.FileSystem
    common.Template
    common.Logging

    Mode             Mode
    Path             string
    Package          string
    Name             string
    Description      string
    Copyright        string
    Overwrite        bool
    WithGit          bool
    WithDocker       bool
    WithGithubAction bool
}

Creator implements the "init" and "new" commands

func (Creator) Execute Uses

func (creator Creator) Execute(project common.Project, cfg config.Config) error

Execute executes the command

func (Creator) RequiresBuild Uses

func (creator Creator) RequiresBuild() bool

RequiresBuild indicates if a build is required before running the command

type Mode Uses

type Mode int

Mode is used to define the mode in which we run (init or new)

const (
    // InitProject initializes a project in an existing directory
    InitProject Mode = iota + 1

    // NewProject creates a new project in the given path
    NewProject
)

func (Mode) String Uses

func (c Mode) String() string

String translates the creator mode to a string

Package creator imports 7 packages (graph) and is imported by 1 packages. Updated 2020-05-30. Refresh now. Tools for package owners.