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 ¶
- func New() *cobra.Command
- func NewCleanCmd() *cobra.Command
- func NewDocCmd() *cobra.Command
- func NewDocGenerateCmd() *cobra.Command
- func NewFmtCmd() *cobra.Command
- func NewImportCmd() *cobra.Command
- func NewLintCmd() *cobra.Command
- func NewModCmd() *cobra.Command
- func NewRegistryCmd() *cobra.Command
- func NewRunCmd() *cobra.Command
- func NewVersionCmd() *cobra.Command
- func NewVetCmd() *cobra.Command
- func RunWithKpmMod(cmd string, args []string) error
- func RunWithKpmRegistry(cmd string, args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDocGenerateCmd ¶
NewDocGenerateCmd returns the doc generate command.
func RunWithKpmMod ¶
func RunWithKpmRegistry ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.