init

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InitLogger hclog.Logger = logger.HcLog().Named("init")

Functions

func IsModFileExist

func IsModFileExist(projectPath string) bool

func PreRun

func PreRun(projectPath string) error

func Run

func Run(flags *Flags, projectPath string, moduleName string) error

The `Run` function initializes a Go module, checks if a `go.mod` file exists, prompts the user to re-initialize the module if it does, deletes the `go.mod` and `go.sum` files if necessary, runs `go mod init` with the specified module name,for gets the raiden library from a repository, and finally runs `go mod tidy` to install dependencies.

Types

type Flags

type Flags struct {
	Version string
}

The `Flags` type represents a set of command line flags, with a `Version` field for specifying the version of a raiden. @property {string} Version - The `Version` property is a string that represents the version of the Raiden software. It can be specified using a tag, branch, or commit number.

func (*Flags) Bind

func (f *Flags) Bind(cmd *cobra.Command)

Jump to

Keyboard shortcuts

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