cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Copyright 2023 The KCL Authors. All rights reserved. This file provides all the flags in the kpm cli.

Index

Constants

View Source
const FLAG_ARGUMENT = "argument"
View Source
const FLAG_DISABLE_NONE = "disable_none"
View Source
const FLAG_INPUT = "input"
View Source
const FLAG_OVERRIDES = "overrides"
View Source
const FLAG_SETTING = "setting"
View Source
const FLAG_SORT_KEYS = "sort_keys"
View Source
const FLAG_TAG = "tag"
View Source
const FLAG_TAR_PATH = "tar_path"
View Source
const FLAG_UPDATE = "update"
View Source
const FLAG_VENDOR = "vendor"

Variables

This section is empty.

Functions

func CompileOptionFromCli

func CompileOptionFromCli(c *cli.Context) *opt.CompileOptions

CompileOptionFromCli will parse the kcl options from the cli context.

func KpmAdd

func KpmAdd(c *cli.Context) error

func KpmPull

func KpmPull(c *cli.Context) error

func KpmPush

func KpmPush(c *cli.Context, settings *settings.Settings) error

func KpmRun

func KpmRun(c *cli.Context) error

func NewAddCmd

func NewAddCmd() *cli.Command

NewAddCmd new a Command for `kpm add`.

func NewInitCmd

func NewInitCmd() *cli.Command

NewInitCmd new a Command for `kpm init`.

func NewLoginCmd

func NewLoginCmd(settings *settings.Settings) *cli.Command

NewLoginCmd new a Command for `kpm login`.

func NewLogoutCmd

func NewLogoutCmd(settings *settings.Settings) *cli.Command

NewLogoutCmd new a Command for `kpm logout`.

func NewMetadataCmd

func NewMetadataCmd() *cli.Command

NewMetadataCmd new a Command for `kpm metadata`.

func NewPkgCmd

func NewPkgCmd() *cli.Command

NewPkgCmd new a Command for `kpm pkg`.

func NewPullCmd

func NewPullCmd() *cli.Command

NewPullCmd new a Command for `kpm pull`.

func NewPushCmd

func NewPushCmd(settings *settings.Settings) *cli.Command

NewPushCmd new a Command for `kpm push`.

func NewRunCmd

func NewRunCmd() *cli.Command

NewRunCmd new a Command for `kpm run`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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