cmd

package
v0.7.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Overview

Copyright The KCL Authors. All rights reserved.

Copyright The KCL Authors. All rights reserved.

#### Language & Tooling Commands

``` kcl

run           compile kcl package from a url or filepath
build         build the kcl package (Not yet implemented)
check         check the current package, but don't build target files (Not yet implemented)
doc           documentation tool
fmt           format tool
lint          lint tool
vet           vet tool
test          unit/integration/benchmark test tool (Not yet implemented)
clean         remove object files and cached files

```

#### Package & Registry Related Commands (mod and registry workspace)

``` kcl

mod init         initialize new module in current directory
mod search       search a command from regisry
mod add          add new dependency
mod remove       remove dependency
mod update       update dependency
mod pkg          package a kcl package into tar
mod metadata     output the resolved dependencies of a package
mod push         push kcl package to OCI registry.
mod pull         pull kcl package from OCI registry.
registry login   login to a registry
registry logout  logout from a registry

```

#### Integration Commands

``` kcl

import     migration other data and schema to kcl e.g., openapi, jsonschema, json, yaml
export     convert kcl schema to other schema e.g., openapi

```

#### Plugin Commands (plugin workspace)

``` kcl

plugin install     install one or more kcl command plugins
plugin list        list installed command plugins
plugin uninstall   uninstall one or more command plugins
plugin update      update one or more command plugins

```

#### Version and Help Commands

``` kcl

help, h   Shows a list of commands or help for one command
version   Shows the command version

``` #### Alias

``` alias kcl="kcl run" alias kpm="kcl mod" ```

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

New creates a new cobra client

func NewCleanCmd

func NewCleanCmd() *cobra.Command

NewCleanCmd returns the clean command.

func NewDocCmd

func NewDocCmd() *cobra.Command

NewDocCmd returns the doc command.

func NewDocGenerateCmd

func NewDocGenerateCmd() *cobra.Command

NewDocGenerateCmd returns the doc generate command.

func NewFmtCmd

func NewFmtCmd() *cobra.Command

NewFmtCmd returns the fmt command.

func NewImportCmd

func NewImportCmd() *cobra.Command

NewImportCmd returns the import command.

func NewLintCmd

func NewLintCmd() *cobra.Command

NewLintCmd returns the lint command.

func NewModCmd

func NewModCmd() *cobra.Command

NewModCmd returns the mod command.

func NewRegistryCmd

func NewRegistryCmd() *cobra.Command

NewModCmd returns the mod command.

func NewRunCmd

func NewRunCmd() *cobra.Command

NewRunCmd returns the run command.

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd returns the version command.

func NewVetCmd

func NewVetCmd() *cobra.Command

NewVetCmd returns the vet command.

func RunWithKpmMod

func RunWithKpmMod(cmd string, args []string) error

func RunWithKpmRegistry

func RunWithKpmRegistry(cmd string, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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