go-james: github.com/pieterclaerhout/go-james/cmd/installer Index | Files

package installer

import "github.com/pieterclaerhout/go-james/cmd/installer"

Index

Package Files

main.go

Variables

var InstallCmd = climax.Command{
    Name:  "install",
    Brief: "Build the executable and install it in $GOPATh/bin",
    Help:  "Build the executable and install it in $GOPATh/bin",
    Flags: []climax.Flag{
        {
            Name:     "verbose",
            Short:    "v",
            Usage:    `--verbose`,
            Help:     `print the names of packages as they are compiled.`,
            Variable: false,
        },
    },
    Handle: func(ctx climax.Context) int {

        verbose := ctx.Is("verbose")

        tool := installer.Installer{
            Verbose: verbose,
        }

        executor := internal.NewExecutor("")
        return executor.RunTool(tool, true)

    },
}

InstallCmd implements the install command

Package installer imports 3 packages (graph) and is imported by 1 packages. Updated 2019-10-19. Refresh now. Tools for package owners.