Documentation ¶
Index ¶
- Constants
- func CompileOptionFromCli(c *cli.Context) *opt.CompileOptions
- func GetModulesToUpdate(kclPkg *pkg.KclPkg, modulesToUpgrade []module.Version, ...) error
- func InsertModuleToDeps(kclPkg *pkg.KclPkg, module module.Version, target module.Version, ...) error
- func KpmAdd(c *cli.Context, kpmcli *client.KpmClient) error
- func KpmGraph(c *cli.Context, kpmcli *client.KpmClient) error
- func KpmPull(c *cli.Context, kpmcli *client.KpmClient) error
- func KpmPush(c *cli.Context, kpmcli *client.KpmClient) error
- func KpmRun(c *cli.Context, kpmcli *client.KpmClient) error
- func KpmUpdate(c *cli.Context, kpmcli *client.KpmClient) error
- func NewAddCmd(kpmcli *client.KpmClient) *cli.Command
- func NewGraphCmd(kpmcli *client.KpmClient) *cli.Command
- func NewImportCmd(kpmcli *client.KpmClient) *cli.Command
- func NewInitCmd(kpmcli *client.KpmClient) *cli.Command
- func NewLoginCmd(kpmcli *client.KpmClient) *cli.Command
- func NewLogoutCmd(kpmcli *client.KpmClient) *cli.Command
- func NewMetadataCmd(kpmcli *client.KpmClient) *cli.Command
- func NewPkgCmd(kpmcli *client.KpmClient) *cli.Command
- func NewPullCmd(kpmcli *client.KpmClient) *cli.Command
- func NewPushCmd(kpmcli *client.KpmClient) *cli.Command
- func NewRunCmd(kpmcli *client.KpmClient) *cli.Command
- func NewUpdateCmd(kpmcli *client.KpmClient) *cli.Command
- func ParseOciPkgNameAndVersion(s string) (string, string, error)
Constants ¶
const FLAG_ARGUMENT = "argument"
const FLAG_DISABLE_NONE = "disable_none"
const FLAG_INPUT = "input"
const FLAG_NO_SUM_CHECK = "no_sum_check"
const FLAG_OVERRIDES = "overrides"
const FLAG_QUIET = "quiet"
const FLAG_SETTING = "setting"
const FLAG_SORT_KEYS = "sort_keys"
const FLAG_TAG = "tag"
const FLAG_TAR_PATH = "tar_path"
const FLAG_UPDATE = "update"
const FLAG_VENDOR = "vendor"
Variables ¶
This section is empty.
Functions ¶
func CompileOptionFromCli ¶ added in v0.3.4
func CompileOptionFromCli(c *cli.Context) *opt.CompileOptions
CompileOptionFromCli will parse the kcl options from the cli context.
func GetModulesToUpdate ¶ added in v0.8.7
func GetModulesToUpdate(kclPkg *pkg.KclPkg, modulesToUpgrade []module.Version, modulesToDowngrade []module.Version, pkgInfo string) error
GetModulesToUpdate validates if the packages is present in kcl.mod file and find the latest version if version is not specified. Depending on the value of pkgVersion, modulesToUpgrade or modulesToDowngrade will be updated.
func InsertModuleToDeps ¶ added in v0.8.7
func InsertModuleToDeps(kclPkg *pkg.KclPkg, module module.Version, target module.Version, buildList []module.Version, reqs mvs.ReqsGraph) error
InsertModuleToDeps checks whether module is present in the buildList and it is not the same as the target module, and inserts it to the dependencies of kclPkg
func NewGraphCmd ¶ added in v0.8.0
NewGraphCmd new a Command for `kpm graph`.
func NewImportCmd ¶ added in v0.3.7
NewImportCmd new a Command for `kpm import`.
func NewInitCmd ¶
NewInitCmd new a Command for `kpm init`.
func NewLoginCmd ¶
NewLoginCmd new a Command for `kpm login`.
func NewLogoutCmd ¶
NewLogoutCmd new a Command for `kpm logout`.
func NewMetadataCmd ¶
NewMetadataCmd new a Command for `kpm metadata`.
func NewPullCmd ¶
NewPullCmd new a Command for `kpm pull`.
func NewPushCmd ¶
NewPushCmd new a Command for `kpm push`.
func NewUpdateCmd ¶ added in v0.4.0
NewUpdateCmd new a Command for `kpm update`.
Types ¶
This section is empty.