Documentation ¶
Index ¶
Constants ¶
View Source
const ( SyslModulesOff = "off" SyslModulesOn = "on" SyslModulesGitHub = "github" SyslModulesGoMod = "gomod" MasterBranch = "master" )
Variables ¶
View Source
var GitHubMode = os.Getenv("SYSL_MODULES") == SyslModulesGitHub
View Source
var SyslModules = os.Getenv("SYSL_MODULES") != SyslModulesOff
Functions ¶
func AppendVersion ¶ added in v0.179.0
func ExtractVersion ¶ added in v0.98.0
func SyslModInit ¶ added in v0.6.3
Assumes that a go module and a sysl module is mutually exclusive. This function makes the assumption that the CWD is not a go module since we hijack this command and use go.mod and possibly go.sum to determine whether the current folder/project is a sysl module
Types ¶
type DependencyManager ¶ added in v0.179.0
type Module ¶
type Module struct { // The name of module joined by forward slash(/). e.g. "github.com/anz-bank/sysl" Name string // The absolute path to the module. // e.g. "/Users/foo/go/pkg/mod/github.com/anz-bank/sysl@v1.1.0" on Linux and macOS // "C:\Users\foo\go\pkg\mod\github.com\anz-bank\sysl@v1.1.0" on Windows Dir string // The version of the module. e.g. "v1.1.0" Version string }
Click to show internal directories.
Click to hide internal directories.