diff --git a/docs/cmd/en_US/kusion.md b/docs/cmd/en_US/kusion.md index 0b673452..ae639227 100644 --- a/docs/cmd/en_US/kusion.md +++ b/docs/cmd/en_US/kusion.md @@ -1,10 +1,10 @@ ## kusion -Kusion manages the Kubernetes cluster by code +Kusion is the platform engineering engine of KusionStack ### Synopsis -Kusion is a cloud-native programmable technology stack, which manages the Kubernetes cluster by code. +Kusion is the platform engineering engine of KusionStack. It delivers intentions to Kubernetes, Clouds, and On-Premise resources. ``` kusion [flags] @@ -18,15 +18,14 @@ kusion [flags] ### SEE ALSO -* [kusion apply](kusion_apply.md) - Apply a configuration stack to resource(s) by work directory -* [kusion check](kusion_check.md) - Check if KCL configurations in current directory ok to compile +* [kusion apply](kusion_apply.md) - Apply the operation intents of various resources to multiple runtimes * [kusion compile](kusion_compile.md) - Compile KCL into YAML * [kusion deps](kusion_deps.md) - Show KCL file dependency information -* [kusion destroy](kusion_destroy.md) - Destroy a configuration stack to resource(s) by work directory +* [kusion destroy](kusion_destroy.md) - Delete the specified resources in runtime * [kusion env](kusion_env.md) - Print Kusion environment information * [kusion init](kusion_init.md) - Initialize the scaffolding for a project -* [kusion ls](kusion_ls.md) - List all project and stack information -* [kusion preview](kusion_preview.md) - Preview a series of resource changes within the stack -* [kusion version](kusion_version.md) - Print the kusion version information for the current context. +* [kusion ls](kusion_ls.md) - List all Projects and Stacks +* [kusion preview](kusion_preview.md) - Preview a series of resource changes within the stack +* [kusion version](kusion_version.md) - Print the Kusion version information for the current context -###### Auto generated by spf13/cobra on 13-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/en_US/kusion_apply.md b/docs/cmd/en_US/kusion_apply.md index 6b880a08..1b97ec89 100644 --- a/docs/cmd/en_US/kusion_apply.md +++ b/docs/cmd/en_US/kusion_apply.md @@ -1,14 +1,14 @@ ## kusion apply -Apply a configuration stack to resource(s) by work directory +Apply the operation intents of various resources to multiple runtimes ### Synopsis Apply a series of resource changes within the stack. - Create or update or delete resources according to the KCL files within a stack. By default, Kusion will generate an execution plan and present it for your approval before taking any action. +Create or update or delete resources according to the KCL files within a stack. By default, Kusion will generate an execution plan and present it for your approval before taking any action. - You can check the plan details and then decide if the actions should be taken or aborted. +You can check the plan details and then decide if the actions should be taken or aborted. ``` kusion apply [flags] @@ -28,6 +28,9 @@ kusion apply [flags] # Skip interactive approval of plan details before applying kusion apply --yes + + # Apply without output style and color + kusion apply --no-style=true ``` ### Options @@ -53,6 +56,6 @@ kusion apply [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion is the platform engineering engine of KusionStack -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/en_US/kusion_check.md b/docs/cmd/en_US/kusion_check.md index 676d266d..2fe9fd51 100644 --- a/docs/cmd/en_US/kusion_check.md +++ b/docs/cmd/en_US/kusion_check.md @@ -40,6 +40,6 @@ kusion check [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion is the platform engineering engine of KusionStack -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/en_US/kusion_compile.md b/docs/cmd/en_US/kusion_compile.md index 3d9a6cae..8f16dda4 100644 --- a/docs/cmd/en_US/kusion_compile.md +++ b/docs/cmd/en_US/kusion_compile.md @@ -6,7 +6,7 @@ Compile KCL into YAML Compile one or more KCL files. - The KCL filename must be specified. You can specify a list of arguments to replace the placeholders defined in KCL, and output the compiled results to a file when using --output flag. +The KCL filename must be specified. You can specify a list of arguments to replace the placeholders defined in KCL, and output the compiled results to a file when using --output flag. ``` kusion compile [flags] @@ -32,6 +32,9 @@ kusion compile [flags] # Compile main.k and write result into output.yaml kusion compile main.k -o output.yaml + + # Complie without output style and color + kusion compile --no-style=true ``` ### Options @@ -40,6 +43,7 @@ kusion compile [flags] -D, --argument stringArray Specify the top-level argument -n, --disable-none Disable dumping None values -h, --help help for compile + --no-style Disable the output style and color -o, --output string Specify the output file -a, --override-AST Specify the override option -O, --overrides strings Specify the configuration override path and value @@ -49,6 +53,6 @@ kusion compile [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion is the platform engineering engine of KusionStack -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/en_US/kusion_deps.md b/docs/cmd/en_US/kusion_deps.md index d668fce8..0d58d129 100644 --- a/docs/cmd/en_US/kusion_deps.md +++ b/docs/cmd/en_US/kusion_deps.md @@ -38,6 +38,6 @@ kusion deps [WORKDIR] [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion is the platform engineering engine of KusionStack -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/en_US/kusion_destroy.md b/docs/cmd/en_US/kusion_destroy.md index ad17afc9..b5b02305 100644 --- a/docs/cmd/en_US/kusion_destroy.md +++ b/docs/cmd/en_US/kusion_destroy.md @@ -1,14 +1,14 @@ ## kusion destroy -Destroy a configuration stack to resource(s) by work directory +Delete the specified resources in runtime ### Synopsis Delete resources by resource spec. - Only KCL files are accepted. Only one type of arguments may be specified: filenames, resources and names, or resources and label selector. +Only KCL files are accepted. Only one type of arguments may be specified: filenames, resources and names, or resources and label selector. - Note that the destroy command does NOT do resource version checks, so if someone submits an update to a resource right when you submit a destroy, their update will be lost along with the rest of the resource. +Note that the destroy command does NOT do resource version checks, so if someone submits an update to a resource right when you submit a destroy, their update will be lost along with the rest of the resource. ``` kusion destroy [flags] @@ -38,6 +38,6 @@ kusion destroy [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion is the platform engineering engine of KusionStack -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/en_US/kusion_env.md b/docs/cmd/en_US/kusion_env.md index cc640a2e..25268882 100644 --- a/docs/cmd/en_US/kusion_env.md +++ b/docs/cmd/en_US/kusion_env.md @@ -35,6 +35,6 @@ kusion env [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion is the platform engineering engine of KusionStack -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/en_US/kusion_init.md b/docs/cmd/en_US/kusion_init.md index daf76e15..da730142 100644 --- a/docs/cmd/en_US/kusion_init.md +++ b/docs/cmd/en_US/kusion_init.md @@ -6,7 +6,7 @@ Initialize the scaffolding for a project This command initializes the scaffolding for a project, generating a project from an appointed template with correct structure. - The scaffold templates can be retrieved from local or online. The built-in templates are used by default, self-defined templates are also supported by assigning the template repository path. +The scaffold templates can be retrieved from local or online. The built-in templates are used by default, self-defined templates are also supported by assigning the template repository path. ``` kusion init @@ -42,7 +42,7 @@ kusion init ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion is the platform engineering engine of KusionStack * [kusion init templates](kusion_init_templates.md) - List templates used to initialize a project -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/en_US/kusion_init_templates.md b/docs/cmd/en_US/kusion_init_templates.md index 5261dde6..a375ce4b 100644 --- a/docs/cmd/en_US/kusion_init_templates.md +++ b/docs/cmd/en_US/kusion_init_templates.md @@ -37,4 +37,4 @@ kusion init templates * [kusion init](kusion_init.md) - Initialize the scaffolding for a project -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/en_US/kusion_ls.md b/docs/cmd/en_US/kusion_ls.md index 08cede93..47f7a3b7 100644 --- a/docs/cmd/en_US/kusion_ls.md +++ b/docs/cmd/en_US/kusion_ls.md @@ -1,6 +1,6 @@ ## kusion ls -List all project and stack information +List all Projects and Stacks ### Synopsis @@ -45,6 +45,6 @@ kusion ls [WORKDIR] [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion is the platform engineering engine of KusionStack -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/en_US/kusion_preview.md b/docs/cmd/en_US/kusion_preview.md index 49c6b027..02659428 100644 --- a/docs/cmd/en_US/kusion_preview.md +++ b/docs/cmd/en_US/kusion_preview.md @@ -6,7 +6,7 @@ Preview a series of resource changes within the stack Preview a series of resource changes within the stack. - Create or update or delete resources according to the KCL files within a stack. By default, Kusion will generate an execution plan and present it for your approval before taking any action. +Create or update or delete resources according to the KCL files within a stack. By default, Kusion will generate an execution plan and present it for your approval before taking any action. ``` kusion preview [flags] @@ -26,6 +26,12 @@ kusion preview [flags] # Preview with ignored fields kusion preview --ignore-fields="metadata.generation,metadata.managedFields + + # Preview with json format result + kusion preview -o json + + # Preview without output style and color + kusion preview --no-style=true ``` ### Options @@ -48,6 +54,6 @@ kusion preview [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion is the platform engineering engine of KusionStack -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/en_US/kusion_version.md b/docs/cmd/en_US/kusion_version.md index cfd02747..83a1657e 100644 --- a/docs/cmd/en_US/kusion_version.md +++ b/docs/cmd/en_US/kusion_version.md @@ -1,10 +1,10 @@ ## kusion version - Print the kusion version information for the current context. +Print the Kusion version information for the current context ### Synopsis -Print the kusion version information for the current context. +Print the Kusion version information for the current context ``` kusion version [flags] @@ -13,7 +13,7 @@ kusion version [flags] ### Examples ``` - # Print the kusion version + # Print the Kusion version kusion version ``` @@ -26,6 +26,6 @@ kusion version [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion is the platform engineering engine of KusionStack -###### Auto generated by spf13/cobra on 13-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/zh_CN/kusion.md b/docs/cmd/zh_CN/kusion.md index 7c65e712..6717004b 100644 --- a/docs/cmd/zh_CN/kusion.md +++ b/docs/cmd/zh_CN/kusion.md @@ -1,10 +1,10 @@ ## kusion -Kusion manages the Kubernetes cluster by code +Kusion 是 KusionStack 的平台工程引擎 ### Synopsis -Kusion is a cloud-native programmable technology stack, which manages the Kubernetes cluster by code. +Kusion 是 KusionStack 的平台工程引擎。 它将运维意图交付至 Kubernetes、云服务和本地部署的资源中。 ``` kusion [flags] @@ -18,15 +18,14 @@ kusion [flags] ### SEE ALSO -* [kusion apply](kusion_apply.md) - Apply a configuration stack to resource(s) by work directory -* [kusion check](kusion_check.md) - Check if KCL configurations in current directory ok to compile -* [kusion compile](kusion_compile.md) - Compile KCL into YAML +* [kusion apply](kusion_apply.md) - 将各类资源的运维意图 apply 至多种运行时里 (Kubernetes、AWS/阿里云以及自建系统等) +* [kusion compile](kusion_compile.md) - 将 KCL 编译成 YAML * [kusion deps](kusion_deps.md) - Show KCL file dependency information -* [kusion destroy](kusion_destroy.md) - Destroy a configuration stack to resource(s) by work directory +* [kusion destroy](kusion_destroy.md) - 删除运行时中指定的资源 * [kusion env](kusion_env.md) - Print Kusion environment information * [kusion init](kusion_init.md) - 初始化一个 Project 的脚手架 -* [kusion ls](kusion_ls.md) - List all project and stack information -* [kusion preview](kusion_preview.md) - Preview a series of resource changes within the stack -* [kusion version](kusion_version.md) - 打印当前 Kusion 的版本信息 +* [kusion ls](kusion_ls.md) - List all Projects and Stacks +* [kusion preview](kusion_preview.md) - 预览 Stack 中的一系列资源更改 +* [kusion version](kusion_version.md) - 打印当前 Kusion 的版本信息 -###### Auto generated by spf13/cobra on 13-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/zh_CN/kusion_apply.md b/docs/cmd/zh_CN/kusion_apply.md index a967099e..91342ff9 100644 --- a/docs/cmd/zh_CN/kusion_apply.md +++ b/docs/cmd/zh_CN/kusion_apply.md @@ -1,14 +1,14 @@ ## kusion apply -Apply a configuration stack to resource(s) by work directory +将各类资源的运维意图 apply 至多种运行时里 (Kubernetes、AWS/阿里云以及自建系统等) ### Synopsis -Apply a series of resource changes within the stack. +将一系列资源变更 apply 到当前栈中。 - Create or update or delete resources according to the KCL files within a stack. By default, Kusion will generate an execution plan and present it for your approval before taking any action. +在当前 Stack 中根据 KCL 文件创建、更新、删除资源。 默认情况下,在采取任何行动之前,Kusion 会生成一个执行计划,并提交给你批准。 - You can check the plan details and then decide if the actions should be taken or aborted. +你可以检查计划详细信息,然后决定是否应采取或中止这些操作。 ``` kusion apply [flags] @@ -17,42 +17,45 @@ kusion apply [flags] ### Examples ``` - # Apply with specifying work directory + # 指定工作目录 apply kusion apply -w /path/to/workdir - # Apply with specifying arguments + # 指定参数 apply kusion apply -D name=test -D age=18 - # Apply with specifying setting file + # 指定配置文件 apply kusion apply -Y settings.yaml - # Skip interactive approval of plan details before applying - kusion apply --yes + # apply 前跳过计划的交互式审批 + kusion apply —yes + + # apply 输出结果不带样式和颜色 + kusion apply —no-style=true ``` ### Options ``` - -a, --all 预览后自动展示 apply 计划细节 + -a, --all 预览后自动展示执行计划细节 -D, --argument stringArray 指定顶级参数 - -C, --backend-config strings backend-config config state storage backend - --backend-type string backend-type specify state storage backend + -C, --backend-config strings backend-config 配置状态存储后端信息 + --backend-type string backend-type 指定状态存储后端类型,支持 local、db、oss 和 s3 -d, --detail 预览后自动展示 apply 计划细节 - --dry-run dry-run 预览执行效果(总是成功)而不实际应用更改 + --dry-run dry-run 预览执行效果(总是成功)而不实际 apply 更改 -h, --help help for apply - --ignore-fields strings Ignore differences of target fields + --ignore-fields strings 忽略目标字段的差异 --no-style no-style 设置原始输出模式并禁用所有样式 --operator string 指定操作人 -o, --output string 指定输出文件 -O, --overrides strings 指定配置覆盖路径和值 -Y, --setting strings 指定命令行配置文件 - --watch After creating/updating/deleting the requested object, watch for changes + --watch 在创建/更新/删除请求的对象后,观测变更 -w, --workdir string 指定工作目录 -y, --yes 预览后自动审批并应用更新 ``` ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion 是 KusionStack 的平台工程引擎 -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/zh_CN/kusion_check.md b/docs/cmd/zh_CN/kusion_check.md index 187e1c1d..18feca60 100644 --- a/docs/cmd/zh_CN/kusion_check.md +++ b/docs/cmd/zh_CN/kusion_check.md @@ -40,6 +40,6 @@ kusion check [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion 是 KusionStack 的平台工程引擎 -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/zh_CN/kusion_compile.md b/docs/cmd/zh_CN/kusion_compile.md index bd3efe54..35c10864 100644 --- a/docs/cmd/zh_CN/kusion_compile.md +++ b/docs/cmd/zh_CN/kusion_compile.md @@ -1,12 +1,12 @@ ## kusion compile -Compile KCL into YAML +将 KCL 编译成 YAML ### Synopsis -Compile one or more KCL files. +编译一个或多个 KCL 文件。 - The KCL filename must be specified. You can specify a list of arguments to replace the placeholders defined in KCL, and output the compiled results to a file when using --output flag. +必须指定 KCL 文件名。 你可以指定参数列表来替换 KCL 中定义的占位符, 并在使用 --output 标志时将编译结果输出到文件。 ``` kusion compile [flags] @@ -15,23 +15,26 @@ kusion compile [flags] ### Examples ``` - # Compile configuration in main.k into YAML format + # 将 main.k 中的配置编译成 YAML 格式 kusion compile main.k - # Compile main.k with arguments + # 使用参数编译 main.k kusion compile main.k -D name=test -D age=18 - # Compile main.k with arguments from settings.yaml + # 使用来自 settings.yaml 的参数编译 main.k kusion compile main.k -Y settings.yaml - # Compile main.k with work directory + # 使用工作目录编译 main.k kusion compile main.k -w appops/demo/dev - # Compile with override + # Override 当前 Stack 中的 KCL 配置 kusion compile -O __main__:appConfiguration.image=nginx:latest -a - # Compile main.k and write result into output.yaml + # 编译 main.k 并将结果写入 output.yaml kusion compile main.k -o output.yaml + + # 编译输出不带样式和颜色 + kusion compile —no-style=true ``` ### Options @@ -40,6 +43,7 @@ kusion compile [flags] -D, --argument stringArray 指定顶级参数 -n, --disable-none 禁用转储 None 值 -h, --help help for compile + --no-style 禁用输出的样式与颜色 -o, --output string 指定输出文件 -a, --override-AST 指定覆盖选项 -O, --overrides strings 指定配置覆盖路径和值 @@ -49,6 +53,6 @@ kusion compile [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion 是 KusionStack 的平台工程引擎 -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/zh_CN/kusion_deps.md b/docs/cmd/zh_CN/kusion_deps.md index 771bd4c7..76ea6c46 100644 --- a/docs/cmd/zh_CN/kusion_deps.md +++ b/docs/cmd/zh_CN/kusion_deps.md @@ -29,7 +29,7 @@ kusion deps [WORKDIR] [flags] ### Options ``` - --direct string 项目信息的输出格式。可选值:json、yaml、tree、human (default "up") + --direct string Project 信息的输出格式。可选值:json、yaml、tree、human (default "up") --focus strings Paths to focus on to inspect. It cannot be empty and each path needs to be a valid relative path from the workdir -h, --help help for deps --ignore strings File paths to ignore when filtering the affected stacks/projects. Each path needs to be a valid relative path from the workdir. If not set, no paths will be ignored. @@ -38,6 +38,6 @@ kusion deps [WORKDIR] [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion 是 KusionStack 的平台工程引擎 -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/zh_CN/kusion_destroy.md b/docs/cmd/zh_CN/kusion_destroy.md index 10196564..fba87ed1 100644 --- a/docs/cmd/zh_CN/kusion_destroy.md +++ b/docs/cmd/zh_CN/kusion_destroy.md @@ -1,14 +1,14 @@ ## kusion destroy -Destroy a configuration stack to resource(s) by work directory +删除运行时中指定的资源 ### Synopsis -Delete resources by resource spec. +通过资源规约删除资源。 - Only KCL files are accepted. Only one type of arguments may be specified: filenames, resources and names, or resources and label selector. +只接受 KCL 文件。只能指定一种类型的参数:文件名、资源、名称、资源或标签选择器。 - Note that the destroy command does NOT do resource version checks, so if someone submits an update to a resource right when you submit a destroy, their update will be lost along with the rest of the resource. +请注意,destroy 命令不会进行资源版本检查, 因此如果有人在你提交销毁时提交了对资源的更新, 他们的更新将与资源一起丢失。 ``` kusion destroy [flags] @@ -17,16 +17,16 @@ kusion destroy [flags] ### Examples ``` - # Delete the configuration of current stack - kusion destroy + # 删除 pod.k 中的配置 + kusion destroy -f ./pod.k ``` ### Options ``` -D, --argument stringArray 指定顶级参数 - -C, --backend-config strings backend-config config state storage backend - --backend-type string backend-type specify state storage backend + -C, --backend-config strings backend-config 配置状态存储后端信息 + --backend-type string backend-type 指定状态存储后端类型,支持 local、db、oss 和 s3 -d, --detail 预览后自动展示 apply 计划细节 -h, --help help for destroy --operator string 指定操作人 @@ -38,6 +38,6 @@ kusion destroy [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion 是 KusionStack 的平台工程引擎 -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/zh_CN/kusion_env.md b/docs/cmd/zh_CN/kusion_env.md index d66d03b1..70e116a2 100644 --- a/docs/cmd/zh_CN/kusion_env.md +++ b/docs/cmd/zh_CN/kusion_env.md @@ -35,6 +35,6 @@ kusion env [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion 是 KusionStack 的平台工程引擎 -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/zh_CN/kusion_init.md b/docs/cmd/zh_CN/kusion_init.md index 4e5268de..4050e1f9 100644 --- a/docs/cmd/zh_CN/kusion_init.md +++ b/docs/cmd/zh_CN/kusion_init.md @@ -4,9 +4,9 @@ ### Synopsis -该指令用于初始化一个 Project 脚手架,从选定的模板生成具备正确结构的 Project. +该指令用于初始化一个 Project 脚手架,从选定的模板生成具备正确结构的 Project。 - 脚手架模板可以从本地或者线上获取。默认使用内置模板;若需要使用自定义的模板,需要指定模板仓库的地址。 +脚手架模板可以从本地或者线上获取。默认使用内置模板;若需要使用自定义的模板,需要指定模板仓库的地址。 ``` kusion init @@ -42,7 +42,7 @@ kusion init ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion 是 KusionStack 的平台工程引擎 * [kusion init templates](kusion_init_templates.md) - 列出用于初始化 Project 的模板 -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/zh_CN/kusion_init_templates.md b/docs/cmd/zh_CN/kusion_init_templates.md index c7adc9f8..9218af0f 100644 --- a/docs/cmd/zh_CN/kusion_init_templates.md +++ b/docs/cmd/zh_CN/kusion_init_templates.md @@ -4,7 +4,7 @@ ### Synopsis -该指令获取用于初始化Project 脚手架的模板的描述和定义。 +该指令获取用于初始化 Project 脚手架的模板的描述和定义。 ``` kusion init templates @@ -37,4 +37,4 @@ kusion init templates * [kusion init](kusion_init.md) - 初始化一个 Project 的脚手架 -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/zh_CN/kusion_ls.md b/docs/cmd/zh_CN/kusion_ls.md index d22e523a..0704c47b 100644 --- a/docs/cmd/zh_CN/kusion_ls.md +++ b/docs/cmd/zh_CN/kusion_ls.md @@ -1,6 +1,6 @@ ## kusion ls -List all project and stack information +List all Projects and Stacks ### Synopsis @@ -38,13 +38,13 @@ kusion ls [WORKDIR] [flags] ### Options ``` - --format string 项目信息的输出格式。可选值:json、yaml、tree、human (default "human") + --format string project 信息的输出格式。可选值:json、yaml、tree、human (default "human") -h, --help help for ls - -L, --level int 项目和堆栈树的最大显示深度。可选值:0、1、2 (default 2) + -L, --level int Project 和 Stack 树的最大显示深度。可选值:0、1、2 (default 2) ``` ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion 是 KusionStack 的平台工程引擎 -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/zh_CN/kusion_preview.md b/docs/cmd/zh_CN/kusion_preview.md index 2f24f26e..da0f2e6b 100644 --- a/docs/cmd/zh_CN/kusion_preview.md +++ b/docs/cmd/zh_CN/kusion_preview.md @@ -1,12 +1,12 @@ ## kusion preview -Preview a series of resource changes within the stack +预览 Stack 中的一系列资源更改 ### Synopsis -Preview a series of resource changes within the stack. +预览 Stack 中的一系列资源更改。 - Create or update or delete resources according to the KCL files within a stack. By default, Kusion will generate an execution plan and present it for your approval before taking any action. +根据 Stack 内的 KCL 文件创建或更新或删除资源。 默认情况下,Kusion 会生成一个执行计划并在采取任何行动之前将其提交给您批准。 ``` kusion preview [flags] @@ -15,29 +15,32 @@ kusion preview [flags] ### Examples ``` - # Preview with specifying work directory + # 使用指定工作目录进行预览 kusion preview -w /path/to/workdir - # Preview with specifying arguments + # 使用指定参数预览 kusion preview -D name=test -D age=18 - # Preview with specifying setting file + # 指定设置文件预览 kusion preview -Y settings.yaml - # Preview with ignored fields - kusion preview --ignore-fields="metadata.generation,metadata.managedFields + # 预览结果设置为 JSON 格式 + kusion preview -o json + + # 预览结果不带样式和颜色 + kusion preview —no-style=true ``` ### Options ``` - -a, --all 预览后自动展示 apply 计划细节 + -a, --all 预览后自动展示执行计划细节 -D, --argument stringArray 指定顶级参数 - -C, --backend-config strings backend-config config state storage backend - --backend-type string backend-type specify state storage backend + -C, --backend-config strings backend-config 配置状态存储后端信息 + --backend-type string backend-type 指定状态存储后端类型,支持 local、db、oss 和 s3 -d, --detail 预览后自动展示 apply 计划细节 -h, --help help for preview - --ignore-fields strings Ignore differences of target fields + --ignore-fields strings 忽略目标字段的差异 --no-style no-style 设置原始输出模式并禁用所有样式 --operator string 指定操作人 -o, --output string 指定输出文件 @@ -48,6 +51,6 @@ kusion preview [flags] ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion 是 KusionStack 的平台工程引擎 -###### Auto generated by spf13/cobra on 11-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/docs/cmd/zh_CN/kusion_version.md b/docs/cmd/zh_CN/kusion_version.md index ee1d4b29..57cc394f 100644 --- a/docs/cmd/zh_CN/kusion_version.md +++ b/docs/cmd/zh_CN/kusion_version.md @@ -21,11 +21,11 @@ kusion version [flags] ``` -h, --help help for version - -o, --output string 输出格式。当前只支持 json 格式的输出 + -o, --output string Output format. Only json format is supported for now ``` ### SEE ALSO -* [kusion](kusion.md) - Kusion manages the Kubernetes cluster by code +* [kusion](kusion.md) - Kusion 是 KusionStack 的平台工程引擎 -###### Auto generated by spf13/cobra on 13-Jul-2023 +###### Auto generated by spf13/cobra on 15-Jul-2023 diff --git a/hack/update-translations.sh b/hack/update-translations.sh index d6973440..090e674d 100755 --- a/hack/update-translations.sh +++ b/hack/update-translations.sh @@ -4,9 +4,8 @@ set -o errexit set -o nounset set -o pipefail -CMD_DIR=${CMD_DIR:-"pkg/cmd"} -CMD_FILES=("cmd.go" "apply/apply.go" "check/check.go" "compile/compile.go" "deps/deps.go" "destroy/destroy.go" \ -"diff/diff.go" "env/env.go" "init/init.go" "ls/ls.go" "preview/preview.go" "version/version.go") +CMD_FILES=("pkg/cmd/cmd.go" "pkg/cmd/apply/apply.go" "pkg/cmd/check/check.go" "pkg/cmd/compile/compile.go" "pkg/cmd/deps/deps.go" "pkg/cmd/destroy/destroy.go" \ +"pkg/cmd/diff/diff.go" "pkg/cmd/env/env.go" "pkg/cmd/init/init.go" "pkg/cmd/ls/ls.go" "pkg/cmd/preview/preview.go" "pkg/cmd/version/version.go" "pkg/engine/backend/backend.go") TRANSLATIONS_DIR=${TRANSLATIONS_BASE_DIR:-"pkg/util/i18n/translations/kusion"} TRANSLATIONS_FOLDER=${TRANSLATIONS_FOLDER:-"LC_MESSAGES"} TRANSLATIONS_FUNC=${TRANSLATIONS_FUNC:-"i18n.T"} @@ -39,13 +38,12 @@ fi cmdFileList="" for file in "${CMD_FILES[@]}" do - cmdFile="${CMD_DIR}/${file}" - cmdFileList="${cmdFileList} ${cmdFile}" + cmdFileList="${cmdFileList} ${file}" done cmdFileList=${cmdFileList:1} tmpPotFilePath="${TRANSLATIONS_DIR}/tmp.pot" go-xgettext -k "${TRANSLATIONS_FUNC}" -o "${tmpPotFilePath}" ${cmdFileList} -echo "derive .pot file from ${CMD_DIR} .go files succeeded." +echo "derive .pot file succeeded." for lang in "${TRANSLATIONS_LANG[@]}" do diff --git a/pkg/cmd/apply/apply.go b/pkg/cmd/apply/apply.go index 666913f3..2e441978 100644 --- a/pkg/cmd/apply/apply.go +++ b/pkg/cmd/apply/apply.go @@ -8,34 +8,36 @@ import ( "kusionstack.io/kusion/pkg/util/i18n" ) -var ( - applyShort = i18n.T(`Apply a configuration stack to resource(s) by work directory`) +func NewCmdApply() *cobra.Command { + var ( + applyShort = i18n.T(`Apply the operation intents of various resources to multiple runtimes`) - applyLong = i18n.T(` + applyLong = i18n.T(` Apply a series of resource changes within the stack. - + Create or update or delete resources according to the KCL files within a stack. By default, Kusion will generate an execution plan and present it for your approval before taking any action. - + You can check the plan details and then decide if the actions should be taken or aborted.`) - applyExample = i18n.T(` + applyExample = i18n.T(` # Apply with specifying work directory kusion apply -w /path/to/workdir - + # Apply with specifying arguments kusion apply -D name=test -D age=18 - + # Apply with specifying setting file kusion apply -Y settings.yaml - + # Skip interactive approval of plan details before applying - kusion apply --yes`) -) + kusion apply --yes + + # Apply without output style and color + kusion apply --no-style=true`) + ) -func NewCmdApply() *cobra.Command { o := NewApplyOptions() - cmd := &cobra.Command{ Use: "apply", Short: applyShort, diff --git a/pkg/cmd/cmd.go b/pkg/cmd/cmd.go index 13f2a9ac..3d029e06 100644 --- a/pkg/cmd/cmd.go +++ b/pkg/cmd/cmd.go @@ -54,13 +54,6 @@ func NewDefaultKusionctlCommandWithArgs(args []string, in io.Reader, out, errOut return kusionctl } -var ( - rootShort = i18n.T(`Kusion manages the Kubernetes cluster by code`) - - rootLong = i18n.T(` - Kusion is a cloud-native programmable technology stack, which manages the Kubernetes cluster by code.`) -) - func NewKusionctlCmd(in io.Reader, out, err io.Writer) *cobra.Command { // Sending in 'nil' for the getLanguageFn() results in using LANGUAGE, LC_ALL, // LC_MESSAGES, or LANG environment variable in sequence. @@ -68,6 +61,14 @@ func NewKusionctlCmd(in io.Reader, out, err io.Writer) *cobra.Command { updateCheckResult := make(chan string) + var ( + rootShort = i18n.T(`Kusion is the platform engineering engine of KusionStack`) + + rootLong = i18n.T(` + Kusion is the platform engineering engine of KusionStack. + It delivers intentions to Kubernetes, Clouds, and On-Premise resources.`) + ) + // Parent command to which all subcommands are added. cmds := &cobra.Command{ Use: "kusion", diff --git a/pkg/cmd/compile/compile.go b/pkg/cmd/compile/compile.go index 191cdfa3..da1aef4e 100644 --- a/pkg/cmd/compile/compile.go +++ b/pkg/cmd/compile/compile.go @@ -8,39 +8,41 @@ import ( "kusionstack.io/kusion/pkg/util/i18n" ) -var ( - compileShort = i18n.T(`Compile KCL into YAML`) +func NewCmdCompile() *cobra.Command { + var ( + compileShort = i18n.T(`Compile KCL into YAML`) - compileLong = i18n.T(` + compileLong = i18n.T(` Compile one or more KCL files. - + The KCL filename must be specified. You can specify a list of arguments to replace the placeholders defined in KCL, and output the compiled results to a file when using --output flag.`) - compileExample = i18n.T(` + compileExample = i18n.T(` # Compile configuration in main.k into YAML format kusion compile main.k - + # Compile main.k with arguments kusion compile main.k -D name=test -D age=18 - + # Compile main.k with arguments from settings.yaml kusion compile main.k -Y settings.yaml - + # Compile main.k with work directory kusion compile main.k -w appops/demo/dev - + # Compile with override kusion compile -O __main__:appConfiguration.image=nginx:latest -a - + # Compile main.k and write result into output.yaml - kusion compile main.k -o output.yaml`) -) + kusion compile main.k -o output.yaml + + # Complie without output style and color + kusion compile --no-style=true`) + ) -func NewCmdCompile() *cobra.Command { o := NewCompileOptions() - cmd := &cobra.Command{ Use: "compile", Short: compileShort, @@ -63,7 +65,7 @@ func NewCmdCompile() *cobra.Command { i18n.T("Disable dumping None values")) cmd.Flags().BoolVarP(&o.OverrideAST, "override-AST", "a", false, i18n.T("Specify the override option")) - cmd.Flags().BoolVarP(&o.NoStyle, "no-style", "s", false, + cmd.Flags().BoolVarP(&o.NoStyle, "no-style", "", false, i18n.T("Disable the output style and color")) return cmd diff --git a/pkg/cmd/destroy/destroy.go b/pkg/cmd/destroy/destroy.go index 8c813d35..1862641e 100644 --- a/pkg/cmd/destroy/destroy.go +++ b/pkg/cmd/destroy/destroy.go @@ -8,27 +8,26 @@ import ( "kusionstack.io/kusion/pkg/cmd/util" ) -var ( - destroyShort = i18n.T(`Destroy a configuration stack to resource(s) by work directory`) +func NewCmdDestroy() *cobra.Command { + var ( + destroyShort = i18n.T(`Delete the specified resources in runtime`) - destroyLong = i18n.T(` + destroyLong = i18n.T(` Delete resources by resource spec. - + Only KCL files are accepted. Only one type of arguments may be specified: filenames, resources and names, or resources and label selector. - + Note that the destroy command does NOT do resource version checks, so if someone submits an update to a resource right when you submit a destroy, their update will be lost along with the rest of the resource.`) - destroyExample = i18n.T(` + destroyExample = i18n.T(` # Delete the configuration of current stack kusion destroy`) -) + ) -func NewCmdDestroy() *cobra.Command { o := NewDestroyOptions() - cmd := &cobra.Command{ Use: "destroy", Short: destroyShort, diff --git a/pkg/cmd/ls/ls.go b/pkg/cmd/ls/ls.go index 41acfa62..bbd52b5e 100644 --- a/pkg/cmd/ls/ls.go +++ b/pkg/cmd/ls/ls.go @@ -9,7 +9,7 @@ import ( ) var ( - lsShort = i18n.T(`List all project and stack information`) + lsShort = i18n.T(`List all Projects and Stacks`) lsLong = i18n.T(` List all project and stack information in the current directory or the diff --git a/pkg/cmd/preview/preview.go b/pkg/cmd/preview/preview.go index 43779f50..28f9f92a 100644 --- a/pkg/cmd/preview/preview.go +++ b/pkg/cmd/preview/preview.go @@ -8,32 +8,37 @@ import ( "kusionstack.io/kusion/pkg/util/i18n" ) -var ( - previewShort = i18n.T(`Preview a series of resource changes within the stack`) +func NewCmdPreview() *cobra.Command { + var ( + previewShort = i18n.T(`Preview a series of resource changes within the stack`) - previewLong = i18n.T(` + previewLong = i18n.T(` Preview a series of resource changes within the stack. - + Create or update or delete resources according to the KCL files within a stack. By default, - Kusion will generate an execution plan and present it for your approval before taking any action.`) + Kusion will generate an execution plan and present it for your approval before taking any action.`) - previewExample = i18n.T(` + previewExample = i18n.T(` # Preview with specifying work directory kusion preview -w /path/to/workdir - + # Preview with specifying arguments kusion preview -D name=test -D age=18 - + # Preview with specifying setting file kusion preview -Y settings.yaml - + # Preview with ignored fields - kusion preview --ignore-fields="metadata.generation,metadata.managedFields`) -) + kusion preview --ignore-fields="metadata.generation,metadata.managedFields + + # Preview with json format result + kusion preview -o json + + # Preview without output style and color + kusion preview --no-style=true`) + ) -func NewCmdPreview() *cobra.Command { o := NewPreviewOptions() - cmd := &cobra.Command{ Use: "preview", Short: previewShort, diff --git a/pkg/util/i18n/translations/kusion/en_US/LC_MESSAGES/kusion.mo b/pkg/util/i18n/translations/kusion/en_US/LC_MESSAGES/kusion.mo index f9a61981..afbd886e 100644 Binary files a/pkg/util/i18n/translations/kusion/en_US/LC_MESSAGES/kusion.mo and b/pkg/util/i18n/translations/kusion/en_US/LC_MESSAGES/kusion.mo differ diff --git a/pkg/util/i18n/translations/kusion/en_US/LC_MESSAGES/kusion.po b/pkg/util/i18n/translations/kusion/en_US/LC_MESSAGES/kusion.po index b46591d1..83381371 100644 --- a/pkg/util/i18n/translations/kusion/en_US/LC_MESSAGES/kusion.po +++ b/pkg/util/i18n/translations/kusion/en_US/LC_MESSAGES/kusion.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: EMAIL\n" -"POT-Creation-Date: 2023-07-13 21:37+0800\n" -"PO-Revision-Date: 2023-07-11 21:46+0800\n" +"POT-Creation-Date: 2023-07-15 16:42+0800\n" +"PO-Revision-Date: 2023-07-15 16:47+0800\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: en_US\n" @@ -16,10 +16,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: pkg/cmd/preview/preview.go:12 -msgid "Preview a series of resource changes within the stack" -msgstr "Preview a series of resource changes within the stack" +"X-Generator: Poedit 3.3.2\n" #: pkg/cmd/check/check.go:18 msgid "" @@ -36,116 +33,89 @@ msgid "" "\t\t# Check main.k with work directory\n" "\t\tkusion check main.k -w appops/demo/dev" msgstr "" -"\n" -"\t\t# Check configuration in main.k\n" -"\t\tkusion check main.k\n" -"\n" -"\t\t# Check main.k with arguments\n" -"\t\tkusion check main.k -D name=test -D age=18\n" -"\n" -"\t\t# Check main.k with arguments from settings.yaml\n" -"\t\tkusion check main.k -Y settings.yaml\n" -"\n" -"\t\t# Check main.k with work directory\n" -"\t\tkusion check main.k -w appops/demo/dev" -#: pkg/cmd/diff/diff.go:78 -msgid "Omit the dyff summary header. The default is false" -msgstr "Omit the dyff summary header. The default is false" +#: pkg/cmd/compile/compile.go:80 +msgid "Specify the top-level argument" +msgstr "" -#: pkg/cmd/init/init.go:15 +#: pkg/cmd/deps/deps.go:12 +msgid "Show KCL file dependency information" +msgstr "" + +#: pkg/cmd/env/env.go:25 msgid "" "\n" -"\t\tThis command initializes the scaffolding for a project, generating a " -"project from an appointed template with correct structure.\n" +"\t\t# Print Kusion environment information\n" +"\t\tkusion env\n" "\n" -"\t\tThe scaffold templates can be retrieved from local or online. The built-" -"in templates are used by default, self-defined templates are also supported " -"by assigning the template repository path." +"\t\t# Print Kusion environment information as JSON format\n" +"\t\tkusion env --json" msgstr "" -"\n" -"\t\tThis command initializes the scaffolding for a project, generating a " -"project from an appointed template with correct structure.\n" -"\n" -"\t\tThe scaffold templates can be retrieved from local or online. The built-" -"in templates are used by default, self-defined templates are also supported " -"by assigning the template repository path." -#: pkg/cmd/init/init.go:58 -msgid "" -"Force generating the scaffolding files, even if it would change the existing " -"files" +#: pkg/cmd/preview/preview.go:69 +msgid "Automatically show all plan details, combined use with flag `--detail`" msgstr "" -"Force generating the scaffolding files, even if it would change the existing " -"files" -#: pkg/cmd/version/version.go:35 -msgid "Output format. Only json format is supported for now" +#: pkg/engine/backend/backend.go:40 +msgid "backend-type specify state storage backend" msgstr "" -#: pkg/cmd/cmd.go:60 +#: pkg/cmd/check/check.go:15 msgid "" "\n" -" Kusion is a cloud-native programmable technology stack, which manages " -"the Kubernetes cluster by code." +"\t\tCheck if KCL configurations in current directory ok to compile." +msgstr "" + +#: pkg/cmd/diff/diff.go:23 +msgid "Compare differences between input files and " msgstr "" -"\n" -" Kusion is a cloud-native programmable technology stack, which manages " -"the Kubernetes cluster by code." -#: pkg/cmd/apply/apply.go:12 -msgid "Apply a configuration stack to resource(s) by work directory" -msgstr "Apply a configuration stack to resource(s) by work directory" +#: pkg/cmd/ls/ls.go:12 +msgid "List all Projects and Stacks" +msgstr "" -#: pkg/cmd/apply/apply.go:22 +#: pkg/cmd/ls/ls.go:14 msgid "" "\n" -"\t\t# Apply with specifying work directory\n" -"\t\tkusion apply -w /path/to/workdir\n" -"\n" -"\t\t# Apply with specifying arguments\n" -"\t\tkusion apply -D name=test -D age=18\n" -"\n" -"\t\t# Apply with specifying setting file\n" -"\t\tkusion apply -Y settings.yaml\n" -"\n" -"\t\t# Skip interactive approval of plan details before applying\n" -"\t\tkusion apply --yes" +"\t\tList all project and stack information in the current directory or the\n" +"\t\tspecify directory.\n" +"\t\tThe default output is in a human friendly format, and it also supports\n" +"\t\ta variety of formatted structure output." msgstr "" -"\n" -"\t\t# Apply with specifying work directory\n" -"\t\tkusion apply -w /path/to/workdir\n" -"\n" -"\t\t# Apply with specifying arguments\n" -"\t\tkusion apply -D name=test -D age=18\n" -"\n" -"\t\t# Apply with specifying setting file\n" -"\t\tkusion apply -Y settings.yaml\n" -"\n" -"\t\t# Skip interactive approval of plan details before applying\n" -"\t\tkusion apply --yes" -#: pkg/cmd/apply/apply.go:58 pkg/cmd/destroy/destroy.go:50 -msgid "Automatically approve and perform the update after previewing it" -msgstr "Automatically approve and perform the update after previewing it" +#: pkg/cmd/preview/preview.go:75 +msgid "Specify the output format" +msgstr "" -#: pkg/cmd/compile/compile.go:67 -msgid "Disable the output style and color" +#: pkg/cmd/version/version.go:13 +msgid "Print the Kusion version information for the current context" msgstr "" -#: pkg/cmd/diff/diff.go:29 +#: pkg/cmd/deps/deps.go:14 msgid "" "\n" -"\t\t# The comparison object comes from the files\n" -"\t\tkusion diff pod-1.yaml pod-2.yaml\n" -"\t\tkusion diff pod-1.yaml pod-2.yaml --swap=true\n" -"\n" -"\t\t# The comparison object comes from the stdin\n" -"\t\tcat pod-1.yaml > pod-full.yaml\n" -"\t\techo '---' >> pod-full.yaml\n" -"\t\tcat pod-2.yaml >> pod-full.yaml\n" -"\t\tcat pod-full.yaml | kusion diff -" +"\t\tShow the KCL file dependency information in the current directory or the " +"specified workdir.\n" +" By default, it will list all the KCL files that are dependent on the " +"given package path." +msgstr "" + +#: pkg/cmd/init/init.go:67 +msgid "" +"Custom params in JSON. If specified, it will be used as the template default " +"value and skip prompts" msgstr "" + +#: pkg/cmd/preview/preview.go:71 +msgid "no-style sets to RawOutput mode and disables all of styling" +msgstr "" + +#: pkg/cmd/check/check.go:56 pkg/cmd/compile/compile.go:67 +msgid "Specify the override option" +msgstr "" + +#: pkg/cmd/diff/diff.go:29 +msgid "" "\n" "\t\t# The comparison object comes from the files\n" "\t\tkusion diff pod-1.yaml pod-2.yaml\n" @@ -156,58 +126,15 @@ msgstr "" "\t\techo '---' >> pod-full.yaml\n" "\t\tcat pod-2.yaml >> pod-full.yaml\n" "\t\tcat pod-full.yaml | kusion diff -" - -#: pkg/cmd/preview/preview.go:14 -msgid "" -"\n" -"\t\tPreview a series of resource changes within the stack.\n" -"\n" -"\t\tCreate or update or delete resources according to the KCL files within a " -"stack. By default,\n" -" Kusion will generate an execution plan and present it for your approval " -"before taking any action." -msgstr "" -"\n" -"\t\tPreview a series of resource changes within the stack.\n" -"\n" -"\t\tCreate or update or delete resources according to the KCL files within a " -"stack. By default,\n" -" Kusion will generate an execution plan and present it for your approval " -"before taking any action." - -#: pkg/cmd/preview/preview.go:66 -msgid "no-style sets to RawOutput mode and disables all of styling" -msgstr "no-style sets to RawOutput mode and disables all of styling" - -#: pkg/cmd/diff/diff.go:25 -msgid "" -"\n" -"\t\tCompare files differences and display the delta.\n" -"\t\tSupport input file types are: YAML (http://yaml.org/) and JSON (http://" -"json.org/)." msgstr "" -"\n" -"\t\tCompare files differences and display the delta.\n" -"\t\tSupport input file types are: YAML (http://yaml.org/) and JSON (http://" -"json.org/)." -#: pkg/cmd/diff/diff.go:70 -msgid "" -"Swap and for comparison. Note that it is invalid when is " -"stdin. The default is false" +#: pkg/cmd/env/env.go:12 +msgid "Print Kusion environment information" msgstr "" -"Swap and for comparison. Note that it is invalid when is " -"stdin. The default is false" -#: pkg/cmd/init/init.go:78 -msgid "" -"\n" -"\t\tThis command gets the descriptions and definitions of the templates " -"which are used to initialize the project scaffolding." +#: pkg/cmd/preview/preview.go:13 +msgid "Preview a series of resource changes within the stack" msgstr "" -"\n" -"\t\tThis command gets the descriptions and definitions of the templates " -"which are used to initialize the project scaffolding." #: pkg/cmd/ls/ls.go:20 msgid "" @@ -233,584 +160,455 @@ msgid "" "\t\t# List all project and stack by level, and output in a Tree format\n" "\t\tkusion ls ./path/to/project_dir --format=tree --level=1" msgstr "" + +#: pkg/cmd/compile/compile.go:78 +msgid "Specify the command line setting files" +msgstr "" + +#: pkg/cmd/deps/deps.go:18 +msgid "" "\n" -"\t\t# List all project and stack information in the current directory\n" -"\t\tkusion ls\n" -"\n" -"\t\t# List all project and stack information in the specify directory\n" -"\t\tkusion ls ./path/to/project_dir\n" -"\n" -"\t\t# List all project and stack information in the specify directory,\n" -"\t\t# and output in a Tree format\n" -"\t\tkusion ls ./path/to/project_dir --format=tree\n" +"\t\t# List all the KCL files that are dependent by the given focus paths\n" +" kusion deps --focus path/to/focus1 --focus path/to/focus2\n" "\n" -"\t\t# List all project and stack information in the specify directory,\n" -"\t\t# and output in a JSON format\n" -"\t\tkusion ls ./path/to/project_dir --format=json\n" +"\t\t# List all the projects that depend on the given focus paths\n" +"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2\n" "\n" -"\t\t# List all project and stack information in the specify directory,\n" -"\t\t# and output in a YAML format\n" -"\t\tkusion ls ./path/to/project_dir --format=yaml\n" +"\t\t# List all the stacks that depend on the given focus paths\n" +"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 " +"--only stack\n" "\n" -"\t\t# List all project and stack by level, and output in a Tree format\n" -"\t\tkusion ls ./path/to/project_dir --format=tree --level=1" +"\t\t# List all the projects that depend on the given focus paths, ignoring " +"some paths from entrance files in each stack\n" +"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 " +"--ignore path/to/ignore" +msgstr "" -#: pkg/cmd/check/check.go:15 +#: pkg/cmd/deps/deps.go:57 +msgid "" +"File paths to ignore when filtering the affected stacks/projects. Each path " +"needs to be a valid relative path from the workdir. If not set, no paths " +"will be ignored." +msgstr "" + +#: pkg/cmd/diff/diff.go:74 +msgid "Specify the output style. One of human and raw. The default is human" +msgstr "" + +#: pkg/cmd/diff/diff.go:76 +msgid "Ignore order changes in lists. The default is false" +msgstr "" + +#: pkg/cmd/cmd.go:65 +msgid "Kusion is the platform engineering engine of KusionStack" +msgstr "" + +#: pkg/cmd/apply/apply.go:60 pkg/cmd/destroy/destroy.go:49 +msgid "Automatically approve and perform the update after previewing it" +msgstr "" + +#: pkg/cmd/compile/compile.go:69 +msgid "Disable the output style and color" +msgstr "" + +#: pkg/cmd/preview/preview.go:21 msgid "" "\n" -"\t\tCheck if KCL configurations in current directory ok to compile." +"\t\t# Preview with specifying work directory\n" +"\t\tkusion preview -w /path/to/workdir\n" +"\t\n" +"\t\t# Preview with specifying arguments\n" +"\t\tkusion preview -D name=test -D age=18\n" +"\t\n" +"\t\t# Preview with specifying setting file\n" +"\t\tkusion preview -Y settings.yaml\n" +"\t\n" +"\t\t# Preview with ignored fields\n" +"\t\tkusion preview --ignore-fields=\"metadata.generation,metadata." +"managedFields\n" +"\t\t\n" +"\t\t# Preview with json format result\n" +"\t\tkusion preview -o json\n" +"\t\t\n" +"\t\t# Preview without output style and color\n" +"\t\tkusion preview --no-style=true" +msgstr "" + +#: pkg/cmd/compile/compile.go:82 +msgid "Specify the configuration override path and value" msgstr "" + +#: pkg/cmd/destroy/destroy.go:15 +msgid "" "\n" -"\t\tCheck if KCL configurations in current directory ok to compile." +"\t\tDelete resources by resource spec.\n" +"\t\n" +"\t\tOnly KCL files are accepted. Only one type of arguments may be " +"specified: filenames,\n" +"\t\tresources and names, or resources and label selector.\n" +"\t\n" +"\t\tNote that the destroy command does NOT do resource version checks, so if " +"someone submits an\n" +"\t\tupdate to a resource right when you submit a destroy, their update will " +"be lost along with the\n" +"\t\trest of the resource." +msgstr "" -#: pkg/cmd/compile/compile.go:21 +#: pkg/cmd/env/env.go:14 msgid "" "\n" -"\t\t# Compile configuration in main.k into YAML format\n" -"\t\tkusion compile main.k\n" +" Env prints Kusion environment information.\n" "\n" -"\t\t# Compile main.k with arguments\n" -"\t\tkusion compile main.k -D name=test -D age=18\n" -"\n" -"\t\t# Compile main.k with arguments from settings.yaml\n" -"\t\tkusion compile main.k -Y settings.yaml\n" -"\n" -"\t\t# Compile main.k with work directory\n" -"\t\tkusion compile main.k -w appops/demo/dev\n" +" By default env prints information as a shell script (on Windows, a batch " +"file). If one\n" +" or more variable names is given as arguments, env prints the value of " +"each named variable\n" +" on its own line.\n" "\n" -"\t\t# Compile with override\n" -"\t\tkusion compile -O __main__:appConfiguration.image=nginx:latest -a\n" +" The --json flag prints the environment in JSON format instead of as a " +"shell script.\n" "\n" -"\t\t# Compile main.k and write result into output.yaml\n" -"\t\tkusion compile main.k -o output.yaml" +" For more about environment variables, see \"kusion env -h\"." msgstr "" + +#: pkg/cmd/init/init.go:13 +msgid "Initialize the scaffolding for a project" +msgstr "" + +#: pkg/cmd/init/init.go:20 +msgid "" "\n" -"\t\t# Compile configuration in main.k into YAML format\n" -"\t\tkusion compile main.k\n" -"\n" -"\t\t# Compile main.k with arguments\n" -"\t\tkusion compile main.k -D name=test -D age=18\n" -"\n" -"\t\t# Compile main.k with arguments from settings.yaml\n" -"\t\tkusion compile main.k -Y settings.yaml\n" +"\t\t# Initialize a project from internal templates\n" +"\t\tkusion init\n" "\n" -"\t\t# Compile main.k with work directory\n" -"\t\tkusion compile main.k -w appops/demo/dev\n" +"\t\t# Initialize a project from default online templates\n" +"\t\tkusion init --online=true\n" "\n" -"\t\t# Compile with override\n" -"\t\tkusion compile -O __main__:appConfiguration.image=nginx:latest -a\n" +"\t\t# Initialize a project from a specific online template\n" +"\t\tkusion init https://github.com// --online=true\n" "\n" -"\t\t# Compile main.k and write result into output.yaml\n" -"\t\tkusion compile main.k -o output.yaml" +"\t\t# Initialize a project from a specific local template\n" +"\t\tkusion init /path/to/templates" +msgstr "" -#: pkg/cmd/compile/compile.go:78 -msgid "Specify the top-level argument" -msgstr "Specify the top-level argument" +#: pkg/cmd/preview/preview.go:73 +msgid "Ignore differences of target fields" +msgstr "" + +#: pkg/cmd/version/version.go:35 +msgid "Output format. Only json format is supported for now" +msgstr "" -#: pkg/cmd/destroy/destroy.go:12 -msgid "Destroy a configuration stack to resource(s) by work directory" -msgstr "Destroy a configuration stack to resource(s) by work directory" +#: pkg/cmd/apply/apply.go:13 +msgid "Apply the operation intents of various resources to multiple runtimes" +msgstr "" -#: pkg/cmd/compile/compile.go:14 +#: pkg/cmd/apply/apply.go:15 msgid "" "\n" -"\t\tCompile one or more KCL files.\n" -"\n" -"\t\tThe KCL filename must be specified.\n" -"\t\tYou can specify a list of arguments to replace the placeholders defined " -"in KCL,\n" -"\t\tand output the compiled results to a file when using --output flag." +"\t\tApply a series of resource changes within the stack.\n" +"\t\n" +"\t\tCreate or update or delete resources according to the KCL files within a " +"stack.\n" +"\t\tBy default, Kusion will generate an execution plan and present it for " +"your approval before taking any action.\n" +"\t\n" +"\t\tYou can check the plan details and then decide if the actions should be " +"taken or aborted." msgstr "" -"\n" -"\t\tCompile one or more KCL files.\n" -"\n" -"\t\tThe KCL filename must be specified.\n" -"\t\tYou can specify a list of arguments to replace the placeholders defined " -"in KCL,\n" -"\t\tand output the compiled results to a file when using --output flag." -#: pkg/cmd/compile/compile.go:74 -msgid "Specify the work directory" -msgstr "Specify the work directory" - -#: pkg/cmd/init/init.go:64 -msgid "Skip prompts and proceed with default values" -msgstr "Skip prompts and proceed with default values" +#: pkg/cmd/preview/preview.go:67 +msgid "Automatically show plan details with interactive options" +msgstr "" -#: pkg/cmd/preview/preview.go:64 -msgid "Automatically show all plan details, combined use with flag `--detail`" -msgstr "Automatically show all plan details, combined use with flag `--detail`" +#: pkg/cmd/destroy/destroy.go:13 +msgid "Delete the specified resources in runtime" +msgstr "" -#: pkg/cmd/diff/diff.go:72 -msgid "Diff mode. One of noemal and . The default is normal ignore-added" -msgstr "Diff mode. One of noemal and . The default is normal ignore-added" +#: pkg/cmd/diff/diff.go:78 +msgid "Omit the dyff summary header. The default is false" +msgstr "" -#: pkg/cmd/init/init.go:55 +#: pkg/cmd/diff/diff.go:80 msgid "" -"Initialize with specified project name. If not specified, a prompt will " -"request it" +"Sort from and to by kubernetes resource order(non standard behavior). The " +"default is false" msgstr "" -"Initialize with specified project name. If not specified, a prompt will " -"request it" - -#: pkg/cmd/destroy/destroy.go:52 -msgid "Automatically show plan details after previewing it" -msgstr "Automatically show plan details after previewing it" -#: pkg/cmd/env/env.go:25 +#: pkg/cmd/init/init.go:81 msgid "" "\n" -"\t\t# Print Kusion environment information\n" -"\t\tkusion env\n" +"\t\t# Get name and description of internal templates\n" +"\t\tkusion init templates\n" "\n" -"\t\t# Print Kusion environment information as JSON format\n" -"\t\tkusion env --json" +"\t\t# Get templates from specific templates repository\n" +"\t\tkusion init templates https://github.com// --online=true" msgstr "" -"\n" -"\t\t# Print Kusion environment information\n" -"\t\tkusion env\n" -"\n" -"\t\t# Print Kusion environment information as JSON format\n" -"\t\tkusion env --json" -#: pkg/cmd/init/init.go:67 +#: pkg/cmd/preview/preview.go:15 msgid "" -"Custom params in JSON. If specified, it will be used as the template default " -"value and skip prompts" +"\n" +"\t\tPreview a series of resource changes within the stack.\n" +"\t\n" +"\t\tCreate or update or delete resources according to the KCL files within a " +"stack. By default,\n" +"\t\tKusion will generate an execution plan and present it for your approval " +"before taking any action." msgstr "" -"Custom params in JSON. If specified, it will be used as the template default " -"value and skip prompts" -#: pkg/cmd/init/init.go:111 +#: pkg/cmd/compile/compile.go:22 msgid "" -"Specify the output format of templates. If specified, only support json for " -"now; if not, template name and description is given" +"\n" +"\t\t# Compile configuration in main.k into YAML format\n" +"\t\tkusion compile main.k\n" +"\t\n" +"\t\t# Compile main.k with arguments\n" +"\t\tkusion compile main.k -D name=test -D age=18\n" +"\t\n" +"\t\t# Compile main.k with arguments from settings.yaml\n" +"\t\tkusion compile main.k -Y settings.yaml\n" +"\t\n" +"\t\t# Compile main.k with work directory\n" +"\t\tkusion compile main.k -w appops/demo/dev\n" +"\t\n" +"\t\t# Compile with override\n" +"\t\tkusion compile -O __main__:appConfiguration.image=nginx:latest -a\n" +"\t\n" +"\t\t# Compile main.k and write result into output.yaml\n" +"\t\tkusion compile main.k -o output.yaml\n" +"\t\t\n" +"\t\t# Complie without output style and color\n" +"\t\tkusion compile --no-style=true" msgstr "" -"Specify the output format of templates. If specified, only support json for " -"now; if not, template name and description is given" - -#: pkg/cmd/compile/compile.go:12 -msgid "Compile KCL into YAML" -msgstr "Compile KCL into YAML" -#: pkg/cmd/compile/compile.go:76 -msgid "Specify the command line setting files" -msgstr "Specify the command line setting files" - -#: pkg/cmd/destroy/destroy.go:24 +#: pkg/cmd/diff/diff.go:25 msgid "" "\n" -"\t\t# Delete the configuration of current stack\n" -"\t\tkusion destroy" +"\t\tCompare files differences and display the delta.\n" +"\t\tSupport input file types are: YAML (http://yaml.org/) and JSON (http://" +"json.org/)." msgstr "" -"\n" -"\t\t# Delete the configuration of current stack\n" -"\t\tkusion destroy" -#: pkg/cmd/destroy/destroy.go:48 pkg/cmd/preview/preview.go:60 -msgid "Specify the operator" -msgstr "Specify the operator" +#: pkg/cmd/init/init.go:76 +msgid "List templates used to initialize a project" +msgstr "" -#: pkg/cmd/init/init.go:20 +#: pkg/cmd/init/init.go:78 msgid "" "\n" -"\t\t# Initialize a project from internal templates\n" -"\t\tkusion init\n" -"\n" -"\t\t# Initialize a project from default online templates\n" -"\t\tkusion init --online=true\n" -"\n" -"\t\t# Initialize a project from a specific online template\n" -"\t\tkusion init https://github.com// --online=true\n" -"\n" -"\t\t# Initialize a project from a specific local template\n" -"\t\tkusion init /path/to/templates" +"\t\tThis command gets the descriptions and definitions of the templates " +"which are used to initialize the project scaffolding." msgstr "" -"\n" -"\t\t# Initialize a project from internal templates\n" -"\t\tkusion init\n" -"\n" -"\t\t# Initialize a project from default online templates\n" -"\t\tkusion init --online=true\n" -"\n" -"\t\t# Initialize a project from a specific online template\n" -"\t\tkusion init https://github.com// --online=true\n" -"\n" -"\t\t# Initialize a project from a specific local template\n" -"\t\tkusion init /path/to/templates" -#: pkg/cmd/version/version.go:13 -#, fuzzy -msgid "Print the Kusion version information for the current context" -msgstr "" +#: pkg/cmd/version/version.go:14 +msgid "" "\n" -" Print the kusion version information for the current context." +"\t\t# Print the Kusion version\n" +"\t\tkusion version" +msgstr "" -#: pkg/cmd/apply/apply.go:60 +#: pkg/cmd/apply/apply.go:62 msgid "" "Preview the execution effect (always successful) without actually applying " "the changes" msgstr "" -"Preview the execution effect (always successful) without actually applying " -"the changes" - -#: pkg/cmd/compile/compile.go:61 -msgid "Specify the output file" -msgstr "Specify the output file" #: pkg/cmd/deps/deps.go:51 msgid "" "Inspect direct of the dependency information. Valid values: up, down. " "Defaults to up" msgstr "" -"Inspect direct of the dependency information. Valid values: up, down. " -"Defaults to up" -#: pkg/cmd/diff/diff.go:80 +#: pkg/cmd/init/init.go:15 msgid "" -"Sort from and to by kubernetes resource order(non standard behavior). The " -"default is false" +"\n" +"\t\tThis command initializes the scaffolding for a project, generating a " +"project from an appointed template with correct structure.\n" +"\n" +"\t\tThe scaffold templates can be retrieved from local or online. The built-" +"in templates are used by default, self-defined templates are also supported " +"by assigning the template repository path." msgstr "" -"Sort from and to by kubernetes resource order(non standard behavior). The " -"default is false" -#: pkg/cmd/deps/deps.go:57 -msgid "" -"File paths to ignore when filtering the affected stacks/projects. Each path " -"needs to be a valid relative path from the workdir. If not set, no paths " -"will be ignored." +#: pkg/cmd/init/init.go:64 +msgid "Skip prompts and proceed with default values" msgstr "" -"File paths to ignore when filtering the affected stacks/projects. Each path " -"needs to be a valid relative path from the workdir. If not set, no paths " -"will be ignored." -#: pkg/cmd/init/init.go:13 -msgid "Initialize the scaffolding for a project" -msgstr "Initialize the scaffolding for a project" +#: pkg/cmd/compile/compile.go:13 +msgid "Compile KCL into YAML" +msgstr "" -#: pkg/cmd/ls/ls.go:62 +#: pkg/cmd/compile/compile.go:63 +msgid "Specify the output file" +msgstr "" + +#: pkg/cmd/destroy/destroy.go:47 pkg/cmd/preview/preview.go:65 +msgid "Specify the operator" +msgstr "" + +#: pkg/cmd/destroy/destroy.go:51 +msgid "Automatically show plan details after previewing it" +msgstr "" + +#: pkg/cmd/env/env.go:50 +msgid "Print the environment in JSON format" +msgstr "" + +#: pkg/cmd/init/init.go:111 msgid "" -"Output format of the project information. valid values: json, yaml, tree, " -"human" +"Specify the output format of templates. If specified, only support json for " +"now; if not, template name and description is given" +msgstr "" + +#: pkg/cmd/check/check.go:13 +msgid "Check if KCL configurations in current directory ok to compile" msgstr "" -"Output format of the project information. valid values: json, yaml, tree, " -"human" -#: pkg/cmd/apply/apply.go:14 +#: pkg/cmd/init/init.go:55 msgid "" -"\n" -"\t\tApply a series of resource changes within the stack.\n" -"\n" -"\t\tCreate or update or delete resources according to the KCL files within a " -"stack.\n" -"\t\tBy default, Kusion will generate an execution plan and present it for " -"your approval before taking any action.\n" -"\n" -"\t\tYou can check the plan details and then decide if the actions should be " -"taken or aborted." +"Initialize with specified project name. If not specified, a prompt will " +"request it" msgstr "" -"\n" -"\t\tApply a series of resource changes within the stack.\n" -"\n" -"\t\tCreate or update or delete resources according to the KCL files within a " -"stack.\n" -"\t\tBy default, Kusion will generate an execution plan and present it for " -"your approval before taking any action.\n" -"\n" -"\t\tYou can check the plan details and then decide if the actions should be " -"taken or aborted." - -#: pkg/cmd/check/check.go:13 -msgid "Check if KCL configurations in current directory ok to compile" -msgstr "Check if KCL configurations in current directory ok to compile" - -#: pkg/cmd/compile/compile.go:80 -msgid "Specify the configuration override path and value" -msgstr "Specify the configuration override path and value" -#: pkg/cmd/deps/deps.go:12 -msgid "Show KCL file dependency information" -msgstr "Show KCL file dependency information" - -#: pkg/cmd/preview/preview.go:20 +#: pkg/cmd/init/init.go:61 msgid "" -"\n" -"\t\t# Preview with specifying work directory\n" -"\t\tkusion preview -w /path/to/workdir\n" -"\n" -"\t\t# Preview with specifying arguments\n" -"\t\tkusion preview -D name=test -D age=18\n" -"\n" -"\t\t# Preview with specifying setting file\n" -"\t\tkusion preview -Y settings.yaml\n" -"\n" -"\t\t# Preview with ignored fields\n" -"\t\tkusion preview --ignore-fields=\"metadata.generation,metadata." -"managedFields" +"Use templates from online repository to initialize project, or use locally " +"cached templates" msgstr "" -"\n" -"\t\t# Preview with specifying work directory\n" -"\t\tkusion preview -w /path/to/workdir\n" -"\n" -"\t\t# Preview with specifying arguments\n" -"\t\tkusion preview -D name=test -D age=18\n" -"\n" -"\t\t# Preview with specifying setting file\n" -"\t\tkusion preview -Y settings.yaml\n" -"\n" -"\t\t# Preview with ignored fields\n" -"\t\tkusion preview --ignore-fields=\"metadata.generation,metadata." -"managedFields" -#: pkg/cmd/apply/apply.go:62 +#: pkg/cmd/apply/apply.go:64 msgid "" "After creating/updating/deleting the requested object, watch for changes" msgstr "" -"After creating/updating/deleting the requested object, watch for changes" - -#: pkg/cmd/deps/deps.go:14 -msgid "" -"\n" -"\t\tShow the KCL file dependency information in the current directory or the " -"specified workdir.\n" -" By default, it will list all the KCL files that are dependent on the " -"given package path." -msgstr "" -"\n" -"\t\tShow the KCL file dependency information in the current directory or the " -"specified workdir.\n" -" By default, it will list all the KCL files that are dependent on the " -"given package path." -#: pkg/cmd/init/init.go:52 -msgid "" -"Initialize with specified template. If not specified, a prompt will request " -"it" +#: pkg/cmd/check/check.go:54 pkg/cmd/compile/compile.go:65 +msgid "Disable dumping None values" msgstr "" -"Initialize with specified template. If not specified, a prompt will request " -"it" -#: pkg/cmd/ls/ls.go:14 -msgid "" -"\n" -"\t\tList all project and stack information in the current directory or the\n" -"\t\tspecify directory.\n" -"\t\tThe default output is in a human friendly format, and it also supports\n" -"\t\ta variety of formatted structure output." +#: pkg/cmd/compile/compile.go:76 +msgid "Specify the work directory" msgstr "" -"\n" -"\t\tList all project and stack information in the current directory or the\n" -"\t\tspecify directory.\n" -"\t\tThe default output is in a human friendly format, and it also supports\n" -"\t\ta variety of formatted structure output." - -#: pkg/cmd/ls/ls.go:64 -msgid "Max display depth of the project and stack tree. One of 0,1,2" -msgstr "Max display depth of the project and stack tree. One of 0,1,2" - -#: pkg/cmd/preview/preview.go:68 -msgid "Ignore differences of target fields" -msgstr "Ignore differences of target fields" - -#: pkg/cmd/preview/preview.go:70 -msgid "Specify the output format" -msgstr "Specify the output format" - -#: pkg/cmd/cmd.go:58 -msgid "Kusion manages the Kubernetes cluster by code" -msgstr "Kusion manages the Kubernetes cluster by code" #: pkg/cmd/deps/deps.go:53 msgid "" "Paths to focus on to inspect. It cannot be empty and each path needs to be a " "valid relative path from the workdir" msgstr "" -"Paths to focus on to inspect. It cannot be empty and each path needs to be a " -"valid relative path from the workdir" -#: pkg/cmd/diff/diff.go:76 -msgid "Ignore order changes in lists. The default is false" -msgstr "Ignore order changes in lists. The default is false" +#: pkg/cmd/deps/deps.go:55 +msgid "" +"Direct is set to \"down\", \"only\" means only the downstream project/stack " +"list will be output. Valid values: project, stack. Defaults to project" +msgstr "" -#: pkg/cmd/ls/ls.go:12 -msgid "List all project and stack information" -msgstr "List all project and stack information" +#: pkg/cmd/diff/diff.go:70 +msgid "" +"Swap and for comparison. Note that it is invalid when is " +"stdin. The default is false" +msgstr "" -#: pkg/cmd/version/version.go:14 -#, fuzzy +#: pkg/cmd/init/init.go:58 msgid "" -"\n" -"\t\t# Print the Kusion version\n" -"\t\tkusion version" +"Force generating the scaffolding files, even if it would change the existing " +"files" msgstr "" -"\n" -"\t\t# Print the kusion version\n" -"\t\tkusion version" -#: pkg/cmd/destroy/destroy.go:14 +#: pkg/cmd/ls/ls.go:62 msgid "" -"\n" -"\t\tDelete resources by resource spec.\n" -"\n" -"\t\tOnly KCL files are accepted. Only one type of arguments may be " -"specified: filenames,\n" -"\t\tresources and names, or resources and label selector.\n" -"\n" -"\t\tNote that the destroy command does NOT do resource version checks, so if " -"someone submits an\n" -"\t\tupdate to a resource right when you submit a destroy, their update will " -"be lost along with the\n" -"\t\trest of the resource." +"Output format of the project information. valid values: json, yaml, tree, " +"human" msgstr "" -"\n" -"\t\tDelete resources by resource spec.\n" -"\n" -"\t\tOnly KCL files are accepted. Only one type of arguments may be " -"specified: filenames,\n" -"\t\tresources and names, or resources and label selector.\n" -"\n" -"\t\tNote that the destroy command does NOT do resource version checks, so if " -"someone submits an\n" -"\t\tupdate to a resource right when you submit a destroy, their update will " -"be lost along with the\n" -"\t\trest of the resource." -#: pkg/cmd/env/env.go:14 +#: pkg/cmd/cmd.go:67 msgid "" "\n" -" Env prints Kusion environment information.\n" -"\n" -" By default env prints information as a shell script (on Windows, a batch " -"file). If one\n" -" or more variable names is given as arguments, env prints the value of " -"each named variable\n" -" on its own line.\n" -"\n" -" The --json flag prints the environment in JSON format instead of as a " -"shell script.\n" -"\n" -" For more about environment variables, see \"kusion env -h\"." +"\t\tKusion is the platform engineering engine of KusionStack. \n" +"\t\tIt delivers intentions to Kubernetes, Clouds, and On-Premise resources." msgstr "" -"\n" -" Env prints Kusion environment information.\n" -"\n" -" By default env prints information as a shell script (on Windows, a batch " -"file). If one\n" -" or more variable names is given as arguments, env prints the value of " -"each named variable\n" -" on its own line.\n" -"\n" -" The --json flag prints the environment in JSON format instead of as a " -"shell script.\n" -"\n" -" For more about environment variables, see \"kusion env -h\"." -#: pkg/cmd/env/env.go:50 -msgid "Print the environment in JSON format" -msgstr "Print the environment in JSON format" - -#: pkg/cmd/init/init.go:61 +#: pkg/cmd/apply/apply.go:23 msgid "" -"Use templates from online repository to initialize project, or use locally " -"cached templates" +"\n" +"\t\t# Apply with specifying work directory\n" +"\t\tkusion apply -w /path/to/workdir\n" +"\t\n" +"\t\t# Apply with specifying arguments\n" +"\t\tkusion apply -D name=test -D age=18\n" +"\t\n" +"\t\t# Apply with specifying setting file\n" +"\t\tkusion apply -Y settings.yaml\n" +"\t\n" +"\t\t# Skip interactive approval of plan details before applying\n" +"\t\tkusion apply --yes\n" +"\t\t\n" +"\t\t# Apply without output style and color\n" +"\t\tkusion apply --no-style=true" msgstr "" -"Use templates from online repository to initialize project, or use locally " -"cached templates" -#: pkg/cmd/deps/deps.go:55 +#: pkg/cmd/compile/compile.go:15 msgid "" -"Direct is set to \"down\", \"only\" means only the downstream project/stack " -"list will be output. Valid values: project, stack. Defaults to project" +"\n" +"\t\tCompile one or more KCL files.\n" +"\t\n" +"\t\tThe KCL filename must be specified.\n" +"\t\tYou can specify a list of arguments to replace the placeholders defined " +"in KCL,\n" +"\t\tand output the compiled results to a file when using --output flag." msgstr "" -"Direct is set to \"down\", \"only\" means only the downstream project/stack " -"list will be output. Valid values: project, stack. Defaults to project" - -#: pkg/cmd/init/init.go:76 -msgid "List templates used to initialize a project" -msgstr "List templates used to initialize a project" -#: pkg/cmd/init/init.go:81 +#: pkg/cmd/destroy/destroy.go:25 msgid "" "\n" -"\t\t# Get name and description of internal templates\n" -"\t\tkusion init templates\n" -"\n" -"\t\t# Get templates from specific templates repository\n" -"\t\tkusion init templates https://github.com// --online=true" +"\t\t# Delete the configuration of current stack\n" +"\t\tkusion destroy" msgstr "" -"\n" -"\t\t# Get name and description of internal templates\n" -"\t\tkusion init templates\n" -"\n" -"\t\t# Get templates from specific templates repository\n" -"\t\tkusion init templates https://github.com// --online=true" - -#: pkg/cmd/check/check.go:54 pkg/cmd/compile/compile.go:63 -msgid "Disable dumping None values" -msgstr "Disable dumping None values" - -#: pkg/cmd/check/check.go:56 pkg/cmd/compile/compile.go:65 -msgid "Specify the override option" -msgstr "Specify the override option" -#: pkg/cmd/diff/diff.go:23 -msgid "Compare differences between input files and " -msgstr "Compare differences between input files and " - -#: pkg/cmd/preview/preview.go:62 -msgid "Automatically show plan details with interactive options" -msgstr "Automatically show plan details with interactive options" - -#: pkg/cmd/env/env.go:12 -msgid "Print Kusion environment information" -msgstr "Print Kusion environment information" +#: pkg/cmd/diff/diff.go:72 +msgid "Diff mode. One of noemal and . The default is normal ignore-added" +msgstr "" -#: pkg/cmd/deps/deps.go:18 +#: pkg/cmd/init/init.go:52 msgid "" -"\n" -"\t\t# List all the KCL files that are dependent by the given focus paths\n" -" kusion deps --focus path/to/focus1 --focus path/to/focus2\n" -"\n" -"\t\t# List all the projects that depend on the given focus paths\n" -"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2\n" -"\n" -"\t\t# List all the stacks that depend on the given focus paths\n" -"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 " -"--only stack\n" -"\n" -"\t\t# List all the projects that depend on the given focus paths, ignoring " -"some paths from entrance files in each stack\n" -"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 " -"--ignore path/to/ignore" +"Initialize with specified template. If not specified, a prompt will request " +"it" msgstr "" -"\n" -"\t\t# List all the KCL files that are dependent by the given focus paths\n" -" kusion deps --focus path/to/focus1 --focus path/to/focus2\n" -"\n" -"\t\t# List all the projects that depend on the given focus paths\n" -"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2\n" -"\n" -"\t\t# List all the stacks that depend on the given focus paths\n" -"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 " -"--only stack\n" -"\n" -"\t\t# List all the projects that depend on the given focus paths, ignoring " -"some paths from entrance files in each stack\n" -"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 " -"--ignore path/to/ignore" -#: pkg/cmd/diff/diff.go:74 -msgid "Specify the output style. One of human and raw. The default is human" -msgstr "Specify the output style. One of human and raw. The default is human" +#: pkg/cmd/ls/ls.go:64 +msgid "Max display depth of the project and stack tree. One of 0,1,2" +msgstr "" + +#: pkg/engine/backend/backend.go:42 +msgid "backend-config config state storage backend" +msgstr "" #~ msgid "Print the kusion version info" #~ msgstr "Print the kusion version info" -#~ msgid "Print version info as versionShort string" -#~ msgstr "Print version info as versionShort string" - #~ msgid "Print version info as JSON" #~ msgstr "Print version info as JSON" #~ msgid "Print version info as YAML" #~ msgstr "Print version info as YAML" + +#~ msgid "Print version info as versionShort string" +#~ msgstr "Print version info as versionShort string" + +#~ msgid "Destroy a configuration stack to resource(s) by work directory" +#~ msgstr "Destroy a configuration stack to resource(s) by work directory" + +#~ msgid "Apply a configuration stack to resource(s) by work directory" +#~ msgstr "Apply a configuration stack to resource(s) by work directory" + +#, fuzzy +#~ msgid "Kusion manages the Kubernetes cluster by code" +#~ msgstr "Kusion manages the Kubernetes cluster by code" + +#, fuzzy +#~ msgid "" +#~ "\n" +#~ "\t\tKusion is a cloud-native programmable technology stack, which manages " +#~ "the Kubernetes cluster by code." +#~ msgstr "" +#~ "\n" +#~ " Kusion is a cloud-native programmable technology stack, which manages " +#~ "the Kubernetes cluster by code." diff --git a/pkg/util/i18n/translations/kusion/template.pot b/pkg/util/i18n/translations/kusion/template.pot index 6e85e038..c28d1225 100644 --- a/pkg/util/i18n/translations/kusion/template.pot +++ b/pkg/util/i18n/translations/kusion/template.pot @@ -7,7 +7,7 @@ msgid "" msgstr "Project-Id-Version: \n" "Report-Msgid-Bugs-To: EMAIL\n" - "POT-Creation-Date: 2023-07-13 21:37+0800\n" + "POT-Creation-Date: 2023-07-15 16:42+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -16,10 +16,6 @@ msgstr "Project-Id-Version: \n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: pkg/cmd/preview/preview.go:12 -msgid "Preview a series of resource changes within the stack" -msgstr "" - #: pkg/cmd/check/check.go:18 msgid "\n" " # Check configuration in main.k\n" @@ -35,55 +31,76 @@ msgid "\n" " kusion check main.k -w appops/demo/dev" msgstr "" -#: pkg/cmd/diff/diff.go:78 -msgid "Omit the dyff summary header. The default is false" +#: pkg/cmd/compile/compile.go:80 +msgid "Specify the top-level argument" msgstr "" -#: pkg/cmd/init/init.go:15 +#: pkg/cmd/deps/deps.go:12 +msgid "Show KCL file dependency information" +msgstr "" + +#: pkg/cmd/env/env.go:25 msgid "\n" - " This command initializes the scaffolding for a project, generating a project from an appointed template with correct structure.\n" + " # Print Kusion environment information\n" + " kusion env\n" "\n" - " The scaffold templates can be retrieved from local or online. The built-in templates are used by default, self-defined templates are also supported by assigning the template repository path." + " # Print Kusion environment information as JSON format\n" + " kusion env --json" msgstr "" -#: pkg/cmd/init/init.go:58 -msgid "Force generating the scaffolding files, even if it would change the existing files" +#: pkg/cmd/preview/preview.go:69 +msgid "Automatically show all plan details, combined use with flag `--detail`" msgstr "" -#: pkg/cmd/version/version.go:35 -msgid "Output format. Only json format is supported for now" +#: pkg/engine/backend/backend.go:40 +msgid "backend-type specify state storage backend" msgstr "" -#: pkg/cmd/cmd.go:60 +#: pkg/cmd/check/check.go:15 msgid "\n" - " Kusion is a cloud-native programmable technology stack, which manages the Kubernetes cluster by code." + " Check if KCL configurations in current directory ok to compile." msgstr "" -#: pkg/cmd/apply/apply.go:12 -msgid "Apply a configuration stack to resource(s) by work directory" +#: pkg/cmd/diff/diff.go:23 +msgid "Compare differences between input files and " +msgstr "" + +#: pkg/cmd/ls/ls.go:12 +msgid "List all Projects and Stacks" msgstr "" -#: pkg/cmd/apply/apply.go:22 +#: pkg/cmd/ls/ls.go:14 msgid "\n" - " # Apply with specifying work directory\n" - " kusion apply -w /path/to/workdir\n" - "\n" - " # Apply with specifying arguments\n" - " kusion apply -D name=test -D age=18\n" - "\n" - " # Apply with specifying setting file\n" - " kusion apply -Y settings.yaml\n" - "\n" - " # Skip interactive approval of plan details before applying\n" - " kusion apply --yes" + " List all project and stack information in the current directory or the\n" + " specify directory.\n" + " The default output is in a human friendly format, and it also supports\n" + " a variety of formatted structure output." msgstr "" -#: pkg/cmd/apply/apply.go:58 pkg/cmd/destroy/destroy.go:50 -msgid "Automatically approve and perform the update after previewing it" +#: pkg/cmd/preview/preview.go:75 +msgid "Specify the output format" msgstr "" -#: pkg/cmd/compile/compile.go:67 -msgid "Disable the output style and color" +#: pkg/cmd/version/version.go:13 +msgid "Print the Kusion version information for the current context" +msgstr "" + +#: pkg/cmd/deps/deps.go:14 +msgid "\n" + " Show the KCL file dependency information in the current directory or the specified workdir.\n" + " By default, it will list all the KCL files that are dependent on the given package path." +msgstr "" + +#: pkg/cmd/init/init.go:67 +msgid "Custom params in JSON. If specified, it will be used as the template default value and skip prompts" +msgstr "" + +#: pkg/cmd/preview/preview.go:71 +msgid "no-style sets to RawOutput mode and disables all of styling" +msgstr "" + +#: pkg/cmd/check/check.go:56 pkg/cmd/compile/compile.go:67 +msgid "Specify the override option" msgstr "" #: pkg/cmd/diff/diff.go:29 @@ -99,31 +116,12 @@ msgid "\n" " cat pod-full.yaml | kusion diff -" msgstr "" -#: pkg/cmd/preview/preview.go:14 -msgid "\n" - " Preview a series of resource changes within the stack.\n" - "\n" - " Create or update or delete resources according to the KCL files within a stack. By default,\n" - " Kusion will generate an execution plan and present it for your approval before taking any action." -msgstr "" - -#: pkg/cmd/preview/preview.go:66 -msgid "no-style sets to RawOutput mode and disables all of styling" -msgstr "" - -#: pkg/cmd/diff/diff.go:25 -msgid "\n" - " Compare files differences and display the delta.\n" - " Support input file types are: YAML (http://yaml.org/) and JSON (http://json.org/)." -msgstr "" - -#: pkg/cmd/diff/diff.go:70 -msgid "Swap and for comparison. Note that it is invalid when is stdin. The default is false" +#: pkg/cmd/env/env.go:12 +msgid "Print Kusion environment information" msgstr "" -#: pkg/cmd/init/init.go:78 -msgid "\n" - " This command gets the descriptions and definitions of the templates which are used to initialize the project scaffolding." +#: pkg/cmd/preview/preview.go:13 +msgid "Preview a series of resource changes within the stack" msgstr "" #: pkg/cmd/ls/ls.go:20 @@ -150,106 +148,101 @@ msgid "\n" " kusion ls ./path/to/project_dir --format=tree --level=1" msgstr "" -#: pkg/cmd/check/check.go:15 -msgid "\n" - " Check if KCL configurations in current directory ok to compile." +#: pkg/cmd/compile/compile.go:78 +msgid "Specify the command line setting files" msgstr "" -#: pkg/cmd/compile/compile.go:21 +#: pkg/cmd/deps/deps.go:18 msgid "\n" - " # Compile configuration in main.k into YAML format\n" - " kusion compile main.k\n" - "\n" - " # Compile main.k with arguments\n" - " kusion compile main.k -D name=test -D age=18\n" - "\n" - " # Compile main.k with arguments from settings.yaml\n" - " kusion compile main.k -Y settings.yaml\n" - "\n" - " # Compile main.k with work directory\n" - " kusion compile main.k -w appops/demo/dev\n" + " # List all the KCL files that are dependent by the given focus paths\n" + " kusion deps --focus path/to/focus1 --focus path/to/focus2\n" "\n" - " # Compile with override\n" - " kusion compile -O __main__:appConfiguration.image=nginx:latest -a\n" + " # List all the projects that depend on the given focus paths\n" + " kusion deps --direct down --focus path/to/focus1 --focus path/to/focus2\n" "\n" - " # Compile main.k and write result into output.yaml\n" - " kusion compile main.k -o output.yaml" -msgstr "" - -#: pkg/cmd/compile/compile.go:78 -msgid "Specify the top-level argument" -msgstr "" - -#: pkg/cmd/destroy/destroy.go:12 -msgid "Destroy a configuration stack to resource(s) by work directory" -msgstr "" - -#: pkg/cmd/compile/compile.go:14 -msgid "\n" - " Compile one or more KCL files.\n" + " # List all the stacks that depend on the given focus paths\n" + " kusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 --only stack\n" "\n" - " The KCL filename must be specified.\n" - " You can specify a list of arguments to replace the placeholders defined in KCL,\n" - " and output the compiled results to a file when using --output flag." + " # List all the projects that depend on the given focus paths, ignoring some paths from entrance files in each stack\n" + " kusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 --ignore path/to/ignore" msgstr "" -#: pkg/cmd/compile/compile.go:74 -msgid "Specify the work directory" +#: pkg/cmd/deps/deps.go:57 +msgid "File paths to ignore when filtering the affected stacks/projects. Each path needs to be a valid relative path from the workdir. If not set, no paths will be ignored." msgstr "" -#: pkg/cmd/init/init.go:64 -msgid "Skip prompts and proceed with default values" +#: pkg/cmd/diff/diff.go:74 +msgid "Specify the output style. One of human and raw. The default is human" msgstr "" -#: pkg/cmd/preview/preview.go:64 -msgid "Automatically show all plan details, combined use with flag `--detail`" +#: pkg/cmd/diff/diff.go:76 +msgid "Ignore order changes in lists. The default is false" msgstr "" -#: pkg/cmd/diff/diff.go:72 -msgid "Diff mode. One of noemal and . The default is normal ignore-added" +#: pkg/cmd/cmd.go:65 +msgid "Kusion is the platform engineering engine of KusionStack" msgstr "" -#: pkg/cmd/init/init.go:55 -msgid "Initialize with specified project name. If not specified, a prompt will request it" +#: pkg/cmd/apply/apply.go:60 pkg/cmd/destroy/destroy.go:49 +msgid "Automatically approve and perform the update after previewing it" msgstr "" -#: pkg/cmd/destroy/destroy.go:52 -msgid "Automatically show plan details after previewing it" +#: pkg/cmd/compile/compile.go:69 +msgid "Disable the output style and color" msgstr "" -#: pkg/cmd/env/env.go:25 +#: pkg/cmd/preview/preview.go:21 msgid "\n" - " # Print Kusion environment information\n" - " kusion env\n" - "\n" - " # Print Kusion environment information as JSON format\n" - " kusion env --json" -msgstr "" - -#: pkg/cmd/init/init.go:67 -msgid "Custom params in JSON. If specified, it will be used as the template default value and skip prompts" -msgstr "" - -#: pkg/cmd/init/init.go:111 -msgid "Specify the output format of templates. If specified, only support json for now; if not, template name and description is given" + " # Preview with specifying work directory\n" + " kusion preview -w /path/to/workdir\n" + " \n" + " # Preview with specifying arguments\n" + " kusion preview -D name=test -D age=18\n" + " \n" + " # Preview with specifying setting file\n" + " kusion preview -Y settings.yaml\n" + " \n" + " # Preview with ignored fields\n" + " kusion preview --ignore-fields=\"metadata.generation,metadata.managedFields\n" + " \n" + " # Preview with json format result\n" + " kusion preview -o json\n" + " \n" + " # Preview without output style and color\n" + " kusion preview --no-style=true" msgstr "" -#: pkg/cmd/compile/compile.go:12 -msgid "Compile KCL into YAML" +#: pkg/cmd/compile/compile.go:82 +msgid "Specify the configuration override path and value" msgstr "" -#: pkg/cmd/compile/compile.go:76 -msgid "Specify the command line setting files" +#: pkg/cmd/destroy/destroy.go:15 +msgid "\n" + " Delete resources by resource spec.\n" + " \n" + " Only KCL files are accepted. Only one type of arguments may be specified: filenames,\n" + " resources and names, or resources and label selector.\n" + " \n" + " Note that the destroy command does NOT do resource version checks, so if someone submits an\n" + " update to a resource right when you submit a destroy, their update will be lost along with the\n" + " rest of the resource." msgstr "" -#: pkg/cmd/destroy/destroy.go:24 +#: pkg/cmd/env/env.go:14 msgid "\n" - " # Delete the configuration of current stack\n" - " kusion destroy" + " Env prints Kusion environment information.\n" + "\n" + " By default env prints information as a shell script (on Windows, a batch file). If one\n" + " or more variable names is given as arguments, env prints the value of each named variable\n" + " on its own line.\n" + "\n" + " The --json flag prints the environment in JSON format instead of as a shell script.\n" + "\n" + " For more about environment variables, see \"kusion env -h\"." msgstr "" -#: pkg/cmd/destroy/destroy.go:48 pkg/cmd/preview/preview.go:60 -msgid "Specify the operator" +#: pkg/cmd/init/init.go:13 +msgid "Initialize the scaffolding for a project" msgstr "" #: pkg/cmd/init/init.go:20 @@ -267,217 +260,245 @@ msgid "\n" " kusion init /path/to/templates" msgstr "" -#: pkg/cmd/version/version.go:13 -msgid "Print the Kusion version information for the current context" +#: pkg/cmd/preview/preview.go:73 +msgid "Ignore differences of target fields" msgstr "" -#: pkg/cmd/apply/apply.go:60 -msgid "Preview the execution effect (always successful) without actually applying the changes" +#: pkg/cmd/version/version.go:35 +msgid "Output format. Only json format is supported for now" msgstr "" -#: pkg/cmd/compile/compile.go:61 -msgid "Specify the output file" +#: pkg/cmd/apply/apply.go:13 +msgid "Apply the operation intents of various resources to multiple runtimes" msgstr "" -#: pkg/cmd/deps/deps.go:51 -msgid "Inspect direct of the dependency information. Valid values: up, down. Defaults to up" +#: pkg/cmd/apply/apply.go:15 +msgid "\n" + " Apply a series of resource changes within the stack.\n" + " \n" + " Create or update or delete resources according to the KCL files within a stack.\n" + " By default, Kusion will generate an execution plan and present it for your approval before taking any action.\n" + " \n" + " You can check the plan details and then decide if the actions should be taken or aborted." msgstr "" -#: pkg/cmd/diff/diff.go:80 -msgid "Sort from and to by kubernetes resource order(non standard behavior). The default is false" +#: pkg/cmd/preview/preview.go:67 +msgid "Automatically show plan details with interactive options" msgstr "" -#: pkg/cmd/deps/deps.go:57 -msgid "File paths to ignore when filtering the affected stacks/projects. Each path needs to be a valid relative path from the workdir. If not set, no paths will be ignored." +#: pkg/cmd/destroy/destroy.go:13 +msgid "Delete the specified resources in runtime" msgstr "" -#: pkg/cmd/init/init.go:13 -msgid "Initialize the scaffolding for a project" +#: pkg/cmd/diff/diff.go:78 +msgid "Omit the dyff summary header. The default is false" msgstr "" -#: pkg/cmd/ls/ls.go:62 -msgid "Output format of the project information. valid values: json, yaml, tree, human" +#: pkg/cmd/diff/diff.go:80 +msgid "Sort from and to by kubernetes resource order(non standard behavior). The default is false" msgstr "" -#: pkg/cmd/apply/apply.go:14 +#: pkg/cmd/init/init.go:81 msgid "\n" - " Apply a series of resource changes within the stack.\n" - "\n" - " Create or update or delete resources according to the KCL files within a stack.\n" - " By default, Kusion will generate an execution plan and present it for your approval before taking any action.\n" + " # Get name and description of internal templates\n" + " kusion init templates\n" "\n" - " You can check the plan details and then decide if the actions should be taken or aborted." + " # Get templates from specific templates repository\n" + " kusion init templates https://github.com// --online=true" msgstr "" -#: pkg/cmd/check/check.go:13 -msgid "Check if KCL configurations in current directory ok to compile" +#: pkg/cmd/preview/preview.go:15 +msgid "\n" + " Preview a series of resource changes within the stack.\n" + " \n" + " Create or update or delete resources according to the KCL files within a stack. By default,\n" + " Kusion will generate an execution plan and present it for your approval before taking any action." msgstr "" -#: pkg/cmd/compile/compile.go:80 -msgid "Specify the configuration override path and value" +#: pkg/cmd/compile/compile.go:22 +msgid "\n" + " # Compile configuration in main.k into YAML format\n" + " kusion compile main.k\n" + " \n" + " # Compile main.k with arguments\n" + " kusion compile main.k -D name=test -D age=18\n" + " \n" + " # Compile main.k with arguments from settings.yaml\n" + " kusion compile main.k -Y settings.yaml\n" + " \n" + " # Compile main.k with work directory\n" + " kusion compile main.k -w appops/demo/dev\n" + " \n" + " # Compile with override\n" + " kusion compile -O __main__:appConfiguration.image=nginx:latest -a\n" + " \n" + " # Compile main.k and write result into output.yaml\n" + " kusion compile main.k -o output.yaml\n" + " \n" + " # Complie without output style and color\n" + " kusion compile --no-style=true" msgstr "" -#: pkg/cmd/deps/deps.go:12 -msgid "Show KCL file dependency information" +#: pkg/cmd/diff/diff.go:25 +msgid "\n" + " Compare files differences and display the delta.\n" + " Support input file types are: YAML (http://yaml.org/) and JSON (http://json.org/)." msgstr "" -#: pkg/cmd/preview/preview.go:20 +#: pkg/cmd/init/init.go:76 +msgid "List templates used to initialize a project" +msgstr "" + +#: pkg/cmd/init/init.go:78 msgid "\n" - " # Preview with specifying work directory\n" - " kusion preview -w /path/to/workdir\n" - "\n" - " # Preview with specifying arguments\n" - " kusion preview -D name=test -D age=18\n" - "\n" - " # Preview with specifying setting file\n" - " kusion preview -Y settings.yaml\n" - "\n" - " # Preview with ignored fields\n" - " kusion preview --ignore-fields=\"metadata.generation,metadata.managedFields" + " This command gets the descriptions and definitions of the templates which are used to initialize the project scaffolding." +msgstr "" + +#: pkg/cmd/version/version.go:14 +msgid "\n" + " # Print the Kusion version\n" + " kusion version" msgstr "" #: pkg/cmd/apply/apply.go:62 -msgid "After creating/updating/deleting the requested object, watch for changes" +msgid "Preview the execution effect (always successful) without actually applying the changes" msgstr "" -#: pkg/cmd/deps/deps.go:14 +#: pkg/cmd/deps/deps.go:51 +msgid "Inspect direct of the dependency information. Valid values: up, down. Defaults to up" +msgstr "" + +#: pkg/cmd/init/init.go:15 msgid "\n" - " Show the KCL file dependency information in the current directory or the specified workdir.\n" - " By default, it will list all the KCL files that are dependent on the given package path." + " This command initializes the scaffolding for a project, generating a project from an appointed template with correct structure.\n" + "\n" + " The scaffold templates can be retrieved from local or online. The built-in templates are used by default, self-defined templates are also supported by assigning the template repository path." msgstr "" -#: pkg/cmd/init/init.go:52 -msgid "Initialize with specified template. If not specified, a prompt will request it" +#: pkg/cmd/init/init.go:64 +msgid "Skip prompts and proceed with default values" msgstr "" -#: pkg/cmd/ls/ls.go:14 -msgid "\n" - " List all project and stack information in the current directory or the\n" - " specify directory.\n" - " The default output is in a human friendly format, and it also supports\n" - " a variety of formatted structure output." +#: pkg/cmd/compile/compile.go:13 +msgid "Compile KCL into YAML" msgstr "" -#: pkg/cmd/ls/ls.go:64 -msgid "Max display depth of the project and stack tree. One of 0,1,2" +#: pkg/cmd/compile/compile.go:63 +msgid "Specify the output file" msgstr "" -#: pkg/cmd/preview/preview.go:68 -msgid "Ignore differences of target fields" +#: pkg/cmd/destroy/destroy.go:47 pkg/cmd/preview/preview.go:65 +msgid "Specify the operator" msgstr "" -#: pkg/cmd/preview/preview.go:70 -msgid "Specify the output format" +#: pkg/cmd/destroy/destroy.go:51 +msgid "Automatically show plan details after previewing it" msgstr "" -#: pkg/cmd/cmd.go:58 -msgid "Kusion manages the Kubernetes cluster by code" +#: pkg/cmd/env/env.go:50 +msgid "Print the environment in JSON format" msgstr "" -#: pkg/cmd/deps/deps.go:53 -msgid "Paths to focus on to inspect. It cannot be empty and each path needs to be a valid relative path from the workdir" +#: pkg/cmd/init/init.go:111 +msgid "Specify the output format of templates. If specified, only support json for now; if not, template name and description is given" msgstr "" -#: pkg/cmd/diff/diff.go:76 -msgid "Ignore order changes in lists. The default is false" +#: pkg/cmd/check/check.go:13 +msgid "Check if KCL configurations in current directory ok to compile" msgstr "" -#: pkg/cmd/ls/ls.go:12 -msgid "List all project and stack information" +#: pkg/cmd/init/init.go:55 +msgid "Initialize with specified project name. If not specified, a prompt will request it" msgstr "" -#: pkg/cmd/version/version.go:14 -msgid "\n" - " # Print the Kusion version\n" - " kusion version" +#: pkg/cmd/init/init.go:61 +msgid "Use templates from online repository to initialize project, or use locally cached templates" msgstr "" -#: pkg/cmd/destroy/destroy.go:14 -msgid "\n" - " Delete resources by resource spec.\n" - "\n" - " Only KCL files are accepted. Only one type of arguments may be specified: filenames,\n" - " resources and names, or resources and label selector.\n" - "\n" - " Note that the destroy command does NOT do resource version checks, so if someone submits an\n" - " update to a resource right when you submit a destroy, their update will be lost along with the\n" - " rest of the resource." +#: pkg/cmd/apply/apply.go:64 +msgid "After creating/updating/deleting the requested object, watch for changes" msgstr "" -#: pkg/cmd/env/env.go:14 -msgid "\n" - " Env prints Kusion environment information.\n" - "\n" - " By default env prints information as a shell script (on Windows, a batch file). If one\n" - " or more variable names is given as arguments, env prints the value of each named variable\n" - " on its own line.\n" - "\n" - " The --json flag prints the environment in JSON format instead of as a shell script.\n" - "\n" - " For more about environment variables, see \"kusion env -h\"." +#: pkg/cmd/check/check.go:54 pkg/cmd/compile/compile.go:65 +msgid "Disable dumping None values" msgstr "" -#: pkg/cmd/env/env.go:50 -msgid "Print the environment in JSON format" +#: pkg/cmd/compile/compile.go:76 +msgid "Specify the work directory" msgstr "" -#: pkg/cmd/init/init.go:61 -msgid "Use templates from online repository to initialize project, or use locally cached templates" +#: pkg/cmd/deps/deps.go:53 +msgid "Paths to focus on to inspect. It cannot be empty and each path needs to be a valid relative path from the workdir" msgstr "" #: pkg/cmd/deps/deps.go:55 msgid "Direct is set to \"down\", \"only\" means only the downstream project/stack list will be output. Valid values: project, stack. Defaults to project" msgstr "" -#: pkg/cmd/init/init.go:76 -msgid "List templates used to initialize a project" +#: pkg/cmd/diff/diff.go:70 +msgid "Swap and for comparison. Note that it is invalid when is stdin. The default is false" msgstr "" -#: pkg/cmd/init/init.go:81 +#: pkg/cmd/init/init.go:58 +msgid "Force generating the scaffolding files, even if it would change the existing files" +msgstr "" + +#: pkg/cmd/ls/ls.go:62 +msgid "Output format of the project information. valid values: json, yaml, tree, human" +msgstr "" + +#: pkg/cmd/cmd.go:67 msgid "\n" - " # Get name and description of internal templates\n" - " kusion init templates\n" - "\n" - " # Get templates from specific templates repository\n" - " kusion init templates https://github.com// --online=true" + " Kusion is the platform engineering engine of KusionStack. \n" + " It delivers intentions to Kubernetes, Clouds, and On-Premise resources." msgstr "" -#: pkg/cmd/check/check.go:54 pkg/cmd/compile/compile.go:63 -msgid "Disable dumping None values" +#: pkg/cmd/apply/apply.go:23 +msgid "\n" + " # Apply with specifying work directory\n" + " kusion apply -w /path/to/workdir\n" + " \n" + " # Apply with specifying arguments\n" + " kusion apply -D name=test -D age=18\n" + " \n" + " # Apply with specifying setting file\n" + " kusion apply -Y settings.yaml\n" + " \n" + " # Skip interactive approval of plan details before applying\n" + " kusion apply --yes\n" + " \n" + " # Apply without output style and color\n" + " kusion apply --no-style=true" msgstr "" -#: pkg/cmd/check/check.go:56 pkg/cmd/compile/compile.go:65 -msgid "Specify the override option" +#: pkg/cmd/compile/compile.go:15 +msgid "\n" + " Compile one or more KCL files.\n" + " \n" + " The KCL filename must be specified.\n" + " You can specify a list of arguments to replace the placeholders defined in KCL,\n" + " and output the compiled results to a file when using --output flag." msgstr "" -#: pkg/cmd/diff/diff.go:23 -msgid "Compare differences between input files and " +#: pkg/cmd/destroy/destroy.go:25 +msgid "\n" + " # Delete the configuration of current stack\n" + " kusion destroy" msgstr "" -#: pkg/cmd/preview/preview.go:62 -msgid "Automatically show plan details with interactive options" +#: pkg/cmd/diff/diff.go:72 +msgid "Diff mode. One of noemal and . The default is normal ignore-added" msgstr "" -#: pkg/cmd/env/env.go:12 -msgid "Print Kusion environment information" +#: pkg/cmd/init/init.go:52 +msgid "Initialize with specified template. If not specified, a prompt will request it" msgstr "" -#: pkg/cmd/deps/deps.go:18 -msgid "\n" - " # List all the KCL files that are dependent by the given focus paths\n" - " kusion deps --focus path/to/focus1 --focus path/to/focus2\n" - "\n" - " # List all the projects that depend on the given focus paths\n" - " kusion deps --direct down --focus path/to/focus1 --focus path/to/focus2\n" - "\n" - " # List all the stacks that depend on the given focus paths\n" - " kusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 --only stack\n" - "\n" - " # List all the projects that depend on the given focus paths, ignoring some paths from entrance files in each stack\n" - " kusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 --ignore path/to/ignore" +#: pkg/cmd/ls/ls.go:64 +msgid "Max display depth of the project and stack tree. One of 0,1,2" msgstr "" -#: pkg/cmd/diff/diff.go:74 -msgid "Specify the output style. One of human and raw. The default is human" +#: pkg/engine/backend/backend.go:42 +msgid "backend-config config state storage backend" msgstr "" diff --git a/pkg/util/i18n/translations/kusion/zh_CN/LC_MESSAGES/kusion.mo b/pkg/util/i18n/translations/kusion/zh_CN/LC_MESSAGES/kusion.mo index b5245a2d..e5fb14d2 100644 Binary files a/pkg/util/i18n/translations/kusion/zh_CN/LC_MESSAGES/kusion.mo and b/pkg/util/i18n/translations/kusion/zh_CN/LC_MESSAGES/kusion.mo differ diff --git a/pkg/util/i18n/translations/kusion/zh_CN/LC_MESSAGES/kusion.po b/pkg/util/i18n/translations/kusion/zh_CN/LC_MESSAGES/kusion.po index b1f85558..7ce8555f 100644 --- a/pkg/util/i18n/translations/kusion/zh_CN/LC_MESSAGES/kusion.po +++ b/pkg/util/i18n/translations/kusion/zh_CN/LC_MESSAGES/kusion.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: gettext-go-examples-hello\n" "Report-Msgid-Bugs-To: EMAIL\n" -"POT-Creation-Date: 2023-07-13 21:37+0800\n" -"PO-Revision-Date: 2023-07-13 21:37+0800\n" +"POT-Creation-Date: 2023-07-15 16:42+0800\n" +"PO-Revision-Date: 2023-07-14 18:05+0800\n" "Last-Translator: howieyuen \n" "Language-Team: \n" "Language: zh\n" @@ -18,10 +18,6 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 3.3.2\n" -#: pkg/cmd/preview/preview.go:12 -msgid "Preview a series of resource changes within the stack" -msgstr "预览堆栈中的一系列资源更改" - #: pkg/cmd/check/check.go:18 msgid "" "\n" @@ -50,84 +46,99 @@ msgstr "" "\t\t# 使用工作目录验证 main.k\n" "\t\tkusion check main.k -w appops/demo/dev" -#: pkg/cmd/diff/diff.go:78 -msgid "Omit the dyff summary header. The default is false" -msgstr "省略 dyff 摘要标题,默认为否" +#: pkg/cmd/compile/compile.go:80 +msgid "Specify the top-level argument" +msgstr "指定顶级参数" -#: pkg/cmd/init/init.go:15 +#: pkg/cmd/deps/deps.go:12 +msgid "Show KCL file dependency information" +msgstr "" + +#: pkg/cmd/env/env.go:25 msgid "" "\n" -"\t\tThis command initializes the scaffolding for a project, generating a " -"project from an appointed template with correct structure.\n" +"\t\t# Print Kusion environment information\n" +"\t\tkusion env\n" "\n" -"\t\tThe scaffold templates can be retrieved from local or online. The built-" -"in templates are used by default, self-defined templates are also supported " -"by assigning the template repository path." +"\t\t# Print Kusion environment information as JSON format\n" +"\t\tkusion env --json" msgstr "" "\n" -"\t\t该指令用于初始化一个 Project 脚手架,从选定的模板生成具备正确结构的 " -"Project.\n" +"\t\t# 打印 Kusion 环境信息\n" +"\t\tkusion env\n" "\n" -"\t\t脚手架模板可以从本地或者线上获取。默认使用内置模板;若需要使用自定义的模" -"板,需要指定模板仓库的地址。" +"\t\t# 以 JSON 格式打印 Kusion 环境信息\n" +"\t\tkusion env --json" -#: pkg/cmd/init/init.go:58 -msgid "" -"Force generating the scaffolding files, even if it would change the existing " -"files" -msgstr "强制生成脚手架文件,即使会更改现有文件" +#: pkg/cmd/preview/preview.go:69 +msgid "Automatically show all plan details, combined use with flag `--detail`" +msgstr "预览后自动展示执行计划细节" -#: pkg/cmd/version/version.go:35 -msgid "Output format. Only json format is supported for now" -msgstr "输出格式。当前只支持 json 格式的输出" +#: pkg/engine/backend/backend.go:40 +msgid "backend-type specify state storage backend" +msgstr "backend-type 指定状态存储后端类型,支持 local、db、oss 和 s3" -#: pkg/cmd/cmd.go:60 -#, fuzzy +#: pkg/cmd/check/check.go:15 msgid "" "\n" -" Kusion is a cloud-native programmable technology stack, which manages " -"the Kubernetes cluster by code." -msgstr "kusion 作为云原生可编程技术栈,通过代码管理 kubernetes 集群。" +"\t\tCheck if KCL configurations in current directory ok to compile." +msgstr "" +"\n" +"\t\t检查当前目录中的 KCL 配置是否可以编译。" + +#: pkg/cmd/diff/diff.go:23 +msgid "Compare differences between input files and " +msgstr "比较输入文件 之间的差异" -#: pkg/cmd/apply/apply.go:12 -msgid "Apply a configuration stack to resource(s) by work directory" -msgstr "通过工作目录将配置栈应用到一个或多个资源" +#: pkg/cmd/ls/ls.go:12 +#, fuzzy +msgid "List all Projects and Stacks" +msgstr "列出所有 Project 和 Stack 信息" -#: pkg/cmd/apply/apply.go:22 +#: pkg/cmd/ls/ls.go:14 msgid "" "\n" -"\t\t# Apply with specifying work directory\n" -"\t\tkusion apply -w /path/to/workdir\n" -"\n" -"\t\t# Apply with specifying arguments\n" -"\t\tkusion apply -D name=test -D age=18\n" -"\n" -"\t\t# Apply with specifying setting file\n" -"\t\tkusion apply -Y settings.yaml\n" -"\n" -"\t\t# Skip interactive approval of plan details before applying\n" -"\t\tkusion apply --yes" +"\t\tList all project and stack information in the current directory or the\n" +"\t\tspecify directory.\n" +"\t\tThe default output is in a human friendly format, and it also supports\n" +"\t\ta variety of formatted structure output." msgstr "" "\n" -"\t\t# 指定工作目录应用\n" -"\t\tkusion apply -w /path/to/workdir\n" -"\n" -"\t\t# 指定参数应用\n" -"\t\tkusion apply -D name=test -D age=18\n" -"\n" -"\t\t# 指定配置文件应用\n" -"\t\tkusion apply -Y settings.yaml\n" -"\n" -"\t\t# 应用前跳过计划的交互式审批\n" -"\t\tkusion apply —yes" +"\t\t列出当前目录或指定目录中的所有 Project 和 Stack 信息。\n" +"\t\t默认输出是人性化的格式,也支持多种格式的结构输出。" -#: pkg/cmd/apply/apply.go:58 pkg/cmd/destroy/destroy.go:50 -msgid "Automatically approve and perform the update after previewing it" -msgstr "预览后自动审批并应用更新" +#: pkg/cmd/preview/preview.go:75 +#, fuzzy +msgid "Specify the output format" +msgstr "指定输出文件" -#: pkg/cmd/compile/compile.go:67 -msgid "Disable the output style and color" +#: pkg/cmd/version/version.go:13 +msgid "Print the Kusion version information for the current context" +msgstr "打印当前 Kusion 的版本信息" + +#: pkg/cmd/deps/deps.go:14 +msgid "" +"\n" +"\t\tShow the KCL file dependency information in the current directory or the " +"specified workdir.\n" +" By default, it will list all the KCL files that are dependent on the " +"given package path." +msgstr "" + +#: pkg/cmd/init/init.go:67 +msgid "" +"Custom params in JSON. If specified, it will be used as the template default " +"value and skip prompts" msgstr "" +"JSON 格式的自定义参数。若指定,那么会用其作为默认的模板参数,并跳过提示" + +#: pkg/cmd/preview/preview.go:71 +msgid "no-style sets to RawOutput mode and disables all of styling" +msgstr "no-style 设置原始输出模式并禁用所有样式" + +#: pkg/cmd/check/check.go:56 pkg/cmd/compile/compile.go:67 +msgid "Specify the override option" +msgstr "指定覆盖选项" #: pkg/cmd/diff/diff.go:29 msgid "" @@ -153,53 +164,13 @@ msgstr "" "\t\tcat pod-2.yaml >> pod-full.yaml\n" "\t\tcat pod-full.yaml | kusion diff -" -#: pkg/cmd/preview/preview.go:14 -#, fuzzy -msgid "" -"\n" -"\t\tPreview a series of resource changes within the stack.\n" -"\n" -"\t\tCreate or update or delete resources according to the KCL files within a " -"stack. By default,\n" -" Kusion will generate an execution plan and present it for your approval " -"before taking any action." -msgstr "" -"\n" -"\t\t预览堆栈中的一系列资源更改。\n" -"\n" -"\t\t根据堆栈内的 KCL 文件创建或更新或删除资源。\n" -"\t\t默认情况下,Kusion 会生成一个执行计划并在采取任何行动之前将其提交给您批" -"准。" - -#: pkg/cmd/preview/preview.go:66 -msgid "no-style sets to RawOutput mode and disables all of styling" -msgstr "no-style 设置原始输出模式并禁用所有样式" - -#: pkg/cmd/diff/diff.go:25 -msgid "" -"\n" -"\t\tCompare files differences and display the delta.\n" -"\t\tSupport input file types are: YAML (http://yaml.org/) and JSON (http://" -"json.org/)." -msgstr "" -"\n" -"\t\t比较文件差异并显示增量。\n" -"\t\t支持的文件类型有: YAML (http://yaml.org/) 和 JSON (http://json.org/)。" - -#: pkg/cmd/diff/diff.go:70 -msgid "" -"Swap and for comparison. Note that it is invalid when is " -"stdin. The default is false" -msgstr "交换 进行比较。注意 为标准输入时无效。默认为否" +#: pkg/cmd/env/env.go:12 +msgid "Print Kusion environment information" +msgstr "打印 Kusion 环境信息" -#: pkg/cmd/init/init.go:78 -msgid "" -"\n" -"\t\tThis command gets the descriptions and definitions of the templates " -"which are used to initialize the project scaffolding." -msgstr "" -"\n" -"\t\t该指令获取用于初始化Project 脚手架的模板的描述和定义。" +#: pkg/cmd/preview/preview.go:13 +msgid "Preview a series of resource changes within the stack" +msgstr "预览 Stack 中的一系列资源更改" #: pkg/cmd/ls/ls.go:20 msgid "" @@ -226,178 +197,172 @@ msgid "" "\t\tkusion ls ./path/to/project_dir --format=tree --level=1" msgstr "" "\n" -"\t\t# 列出当前目录下的所有项目和堆栈信息\n" +"\t\t# 列出当前目录下的所有 Project 和 Stack 信息\n" "\t\tkusion ls\n" "\n" -"\t\t# 列出指定目录中的所有项目和堆栈信息\n" +"\t\t# 列出指定目录中的所有 Project 和 Stack 信息\n" "\t\tkusion ls ./path/to/project_dir\n" "\n" -"\t\t# 列出指定目录下的所有项目和堆栈信息,并以 Tree 格式输出\n" +"\t\t# 列出指定目录下的所有 Project 和 Stack 信息,并以 Tree 格式输出\n" "\t\tkusion ls ./path/to/project_dir --format=tree\n" "\n" -"\t\t# 列出指定目录下的所有项目和堆栈信息,并以 JSON 格式输出\n" +"\t\t# 列出指定目录下的所有 Project 和 Stack 信息,并以 JSON 格式输出\n" "\t\tkusion ls ./path/to/project_dir --format=json\n" "\n" -"\t\t# 列出指定目录下的所有项目和堆栈信息,并以 YAML 格式输出\n" +"\t\t# 列出指定目录下的所有 Project 和 Stack 信息,并以 YAML 格式输出\n" "\t\tkusion ls ./path/to/project_dir --format=yaml\n" "\n" -"\t\t# 逐级列出所有项目和堆栈,并以 Tree 格式输出\n" +"\t\t# 逐级列出所有 Project 和 Stack,并以 Tree 格式输出\n" "\t\tkusion ls ./path/to/project_dir --format=tree --level=1" -#: pkg/cmd/check/check.go:15 -msgid "" -"\n" -"\t\tCheck if KCL configurations in current directory ok to compile." -msgstr "" -"\n" -"\t\t检查当前目录中的 KCL 配置是否可以编译。" +#: pkg/cmd/compile/compile.go:78 +msgid "Specify the command line setting files" +msgstr "指定命令行配置文件" -#: pkg/cmd/compile/compile.go:21 +#: pkg/cmd/deps/deps.go:18 msgid "" "\n" -"\t\t# Compile configuration in main.k into YAML format\n" -"\t\tkusion compile main.k\n" -"\n" -"\t\t# Compile main.k with arguments\n" -"\t\tkusion compile main.k -D name=test -D age=18\n" -"\n" -"\t\t# Compile main.k with arguments from settings.yaml\n" -"\t\tkusion compile main.k -Y settings.yaml\n" +"\t\t# List all the KCL files that are dependent by the given focus paths\n" +" kusion deps --focus path/to/focus1 --focus path/to/focus2\n" "\n" -"\t\t# Compile main.k with work directory\n" -"\t\tkusion compile main.k -w appops/demo/dev\n" +"\t\t# List all the projects that depend on the given focus paths\n" +"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2\n" "\n" -"\t\t# Compile with override\n" -"\t\tkusion compile -O __main__:appConfiguration.image=nginx:latest -a\n" +"\t\t# List all the stacks that depend on the given focus paths\n" +"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 " +"--only stack\n" "\n" -"\t\t# Compile main.k and write result into output.yaml\n" -"\t\tkusion compile main.k -o output.yaml" +"\t\t# List all the projects that depend on the given focus paths, ignoring " +"some paths from entrance files in each stack\n" +"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 " +"--ignore path/to/ignore" +msgstr "" + +#: pkg/cmd/deps/deps.go:57 +msgid "" +"File paths to ignore when filtering the affected stacks/projects. Each path " +"needs to be a valid relative path from the workdir. If not set, no paths " +"will be ignored." msgstr "" + +#: pkg/cmd/diff/diff.go:74 +msgid "Specify the output style. One of human and raw. The default is human" +msgstr "指定输出风格,human 和 raw 之一,默认值 human" + +#: pkg/cmd/diff/diff.go:76 +msgid "Ignore order changes in lists. The default is false" +msgstr "忽略列表中的顺序变化,默认为否" + +#: pkg/cmd/cmd.go:65 +msgid "Kusion is the platform engineering engine of KusionStack" +msgstr "Kusion 是 KusionStack 的平台工程引擎" + +#: pkg/cmd/apply/apply.go:60 pkg/cmd/destroy/destroy.go:49 +msgid "Automatically approve and perform the update after previewing it" +msgstr "预览后自动审批并应用更新" + +#: pkg/cmd/compile/compile.go:69 +msgid "Disable the output style and color" +msgstr "禁用输出的样式与颜色" + +#: pkg/cmd/preview/preview.go:21 +msgid "" "\n" -"\t\t# 将 main.k 中的配置编译成 YAML 格式\n" -"\t\tkusion compile main.k\n" +"\t\t# Preview with specifying work directory\n" +"\t\tkusion preview -w /path/to/workdir\n" +"\t\n" +"\t\t# Preview with specifying arguments\n" +"\t\tkusion preview -D name=test -D age=18\n" +"\t\n" +"\t\t# Preview with specifying setting file\n" +"\t\tkusion preview -Y settings.yaml\n" +"\t\n" +"\t\t# Preview with ignored fields\n" +"\t\tkusion preview --ignore-fields=\"metadata.generation,metadata." +"managedFields\n" +"\t\t\n" +"\t\t# Preview with json format result\n" +"\t\tkusion preview -o json\n" +"\t\t\n" +"\t\t# Preview without output style and color\n" +"\t\tkusion preview --no-style=true" +msgstr "" "\n" -"\t\t# 使用参数编译 main.k\n" -"\t\tkusion compile main.k -D name=test -D age=18\n" +"\t\t# 使用指定工作目录进行预览\n" +"\t\tkusion preview -w /path/to/workdir\n" "\n" -"\t\t# 使用来自 settings.yaml 的参数编译 main.k\n" -"\t\tkusion compile main.k -Y settings.yaml\n" +"\t\t# 使用指定参数预览\n" +"\t\tkusion preview -D name=test -D age=18\n" "\n" -"\t\t# 使用工作目录编译 main.k\n" -"\t\tkusion compile main.k -w appops/demo/dev\n" +"\t\t# 指定设置文件预览\n" +"\t\tkusion preview -Y settings.yaml\n" "\n" -"\t\t# Override 当前 Stack 中的 KCL 配置\n" -"\t\tkusion compile -O __main__:appConfiguration.image=nginx:latest -a\n" +"\t\t# 预览结果设置为 JSON 格式\n" +"\t\tkusion preview -o json\n" "\n" -"\t\t# 编译 main.k 并将结果写入 output.yaml\n" -"\t\tkusion compile main.k -o output.yaml" - -#: pkg/cmd/compile/compile.go:78 -msgid "Specify the top-level argument" -msgstr "指定顶级参数" +"\t\t# 预览结果不带样式和颜色\n" +"\t\tkusion preview —no-style=true" -#: pkg/cmd/destroy/destroy.go:12 -msgid "Destroy a configuration stack to resource(s) by work directory" -msgstr "通过工作目录销毁已应用到资源的配置栈" +#: pkg/cmd/compile/compile.go:82 +msgid "Specify the configuration override path and value" +msgstr "指定配置覆盖路径和值" -#: pkg/cmd/compile/compile.go:14 +#: pkg/cmd/destroy/destroy.go:15 +#, fuzzy msgid "" "\n" -"\t\tCompile one or more KCL files.\n" -"\n" -"\t\tThe KCL filename must be specified.\n" -"\t\tYou can specify a list of arguments to replace the placeholders defined " -"in KCL,\n" -"\t\tand output the compiled results to a file when using --output flag." +"\t\tDelete resources by resource spec.\n" +"\t\n" +"\t\tOnly KCL files are accepted. Only one type of arguments may be " +"specified: filenames,\n" +"\t\tresources and names, or resources and label selector.\n" +"\t\n" +"\t\tNote that the destroy command does NOT do resource version checks, so if " +"someone submits an\n" +"\t\tupdate to a resource right when you submit a destroy, their update will " +"be lost along with the\n" +"\t\trest of the resource." msgstr "" "\n" -"\t\t编译一个或多个 KCL 文件。\n" +"\t\t通过资源规约删除资源。\n" "\n" -"\t\t必须指定 KCL 文件名。\n" -"\t\t你可以指定参数列表来替换 KCL 中定义的占位符,\n" -"\t\t并在使用 --output 标志时将编译结果输出到文件。" - -#: pkg/cmd/compile/compile.go:74 -msgid "Specify the work directory" -msgstr "指定工作目录" - -#: pkg/cmd/init/init.go:64 -msgid "Skip prompts and proceed with default values" -msgstr "跳过提示,使用默认值初始化 Project" - -#: pkg/cmd/preview/preview.go:64 -#, fuzzy -msgid "Automatically show all plan details, combined use with flag `--detail`" -msgstr "预览后自动展示 apply 计划细节" +"\t\t只接受 KCL 文件。只能指定一种类型的参数:文件名、资源、名称、资源或标签选" +"择器。\n" +"\n" +"\t\t请注意,destroy 命令不会进行资源版本检查,\n" +"\t\t因此如果有人在你提交销毁时提交了对资源的更新,\n" +"\t\t他们的更新将与资源一起丢失。" -#: pkg/cmd/diff/diff.go:72 +#: pkg/cmd/env/env.go:14 #, fuzzy -msgid "Diff mode. One of noemal and . The default is normal ignore-added" -msgstr "差异模式。normal 和 ignore-added 之一。默认值 normal" - -#: pkg/cmd/init/init.go:55 -msgid "" -"Initialize with specified project name. If not specified, a prompt will " -"request it" -msgstr "用指定的 Project 名称初始化。若不指定,将有提示请求获取" - -#: pkg/cmd/destroy/destroy.go:52 -msgid "Automatically show plan details after previewing it" -msgstr "预览后自动展示 apply 计划细节" - -#: pkg/cmd/env/env.go:25 msgid "" "\n" -"\t\t# Print Kusion environment information\n" -"\t\tkusion env\n" +" Env prints Kusion environment information.\n" "\n" -"\t\t# Print Kusion environment information as JSON format\n" -"\t\tkusion env --json" -msgstr "" +" By default env prints information as a shell script (on Windows, a batch " +"file). If one\n" +" or more variable names is given as arguments, env prints the value of " +"each named variable\n" +" on its own line.\n" "\n" -"\t\t# 打印 Kusion 环境信息\n" -"\t\tkusion env\n" +" The --json flag prints the environment in JSON format instead of as a " +"shell script.\n" "\n" -"\t\t# 以 JSON 格式打印 Kusion 环境信息\n" -"\t\tkusion env --json" - -#: pkg/cmd/init/init.go:67 -msgid "" -"Custom params in JSON. If specified, it will be used as the template default " -"value and skip prompts" -msgstr "" -"JSON 格式的自定义参数。若指定,那么会用其作为默认的模板参数,并跳过提示" - -#: pkg/cmd/init/init.go:111 -msgid "" -"Specify the output format of templates. If specified, only support json for " -"now; if not, template name and description is given" +" For more about environment variables, see \"kusion env -h\"." msgstr "" -"指定模板的输出格式。若指定,现在仅支持 json;若不指定,那么将打印模板的名称和" -"描述" - -#: pkg/cmd/compile/compile.go:12 -msgid "Compile KCL into YAML" -msgstr "将 KCL 编译成 YAML" - -#: pkg/cmd/compile/compile.go:76 -msgid "Specify the command line setting files" -msgstr "指定命令行配置文件" - -#: pkg/cmd/destroy/destroy.go:24 -#, fuzzy -msgid "" "\n" -"\t\t# Delete the configuration of current stack\n" -"\t\tkusion destroy" -msgstr "" +"Env 打印 Kusion 环境信息。\n" "\n" -"\t\t# 删除 pod.k 中的配置\n" -"\t\tkusion destroy -f ./pod.k" +"默认情况下,env 将信息打印为 shell 脚本(在 Windows,是 bat 文件)。\n" +"如果一个或多个变量名作为参数给出,env 将每个变量的名和值打印在单独一行上。\n" +"\n" +"--json 标志以 JSON 格式而不是 shell 脚本打印环境变量。\n" +"\n" +"有关环境变量的更多信息,请参阅 `kusion env -h`。" -#: pkg/cmd/destroy/destroy.go:48 pkg/cmd/preview/preview.go:60 -msgid "Specify the operator" -msgstr "指定操作人" +#: pkg/cmd/init/init.go:13 +msgid "Initialize the scaffolding for a project" +msgstr "初始化一个 Project 的脚手架" #: pkg/cmd/init/init.go:20 msgid "" @@ -427,179 +392,167 @@ msgstr "" "\t\t# 从指定的本地模板初始化一个 Project\n" "\t\tkusion init /path/to/templates" -#: pkg/cmd/version/version.go:13 -msgid "Print the Kusion version information for the current context" -msgstr "打印当前 Kusion 的版本信息" - -#: pkg/cmd/apply/apply.go:60 -#, fuzzy -msgid "" -"Preview the execution effect (always successful) without actually applying " -"the changes" -msgstr "dry-run 预览执行效果(总是成功)而不实际应用更改" - -#: pkg/cmd/compile/compile.go:61 -msgid "Specify the output file" -msgstr "指定输出文件" - -#: pkg/cmd/deps/deps.go:51 -#, fuzzy -msgid "" -"Inspect direct of the dependency information. Valid values: up, down. " -"Defaults to up" -msgstr "项目信息的输出格式。可选值:json、yaml、tree、human" - -#: pkg/cmd/diff/diff.go:80 -msgid "" -"Sort from and to by kubernetes resource order(non standard behavior). The " -"default is false" -msgstr "按 kubernetes 资源顺序排序(非标准行为)。默认为否" +#: pkg/cmd/preview/preview.go:73 +msgid "Ignore differences of target fields" +msgstr "忽略目标字段的差异" -#: pkg/cmd/deps/deps.go:57 -msgid "" -"File paths to ignore when filtering the affected stacks/projects. Each path " -"needs to be a valid relative path from the workdir. If not set, no paths " -"will be ignored." +#: pkg/cmd/version/version.go:35 +msgid "Output format. Only json format is supported for now" msgstr "" -#: pkg/cmd/init/init.go:13 -msgid "Initialize the scaffolding for a project" -msgstr "初始化一个 Project 的脚手架" - -#: pkg/cmd/ls/ls.go:62 +#: pkg/cmd/apply/apply.go:13 #, fuzzy -msgid "" -"Output format of the project information. valid values: json, yaml, tree, " -"human" -msgstr "项目信息的输出格式。可选值:json、yaml、tree、human" +msgid "Apply the operation intents of various resources to multiple runtimes" +msgstr "" +"将各类资源的运维意图 apply 至多种运行时里 (Kubernetes、AWS/阿里云以及自建系统" +"等)" -#: pkg/cmd/apply/apply.go:14 +#: pkg/cmd/apply/apply.go:15 msgid "" "\n" "\t\tApply a series of resource changes within the stack.\n" -"\n" +"\t\n" "\t\tCreate or update or delete resources according to the KCL files within a " "stack.\n" "\t\tBy default, Kusion will generate an execution plan and present it for " "your approval before taking any action.\n" -"\n" +"\t\n" "\t\tYou can check the plan details and then decide if the actions should be " "taken or aborted." msgstr "" "\n" -"\t\t将一系列资源变更应用到当前栈中。\n" +"\t\t将一系列资源变更 apply 到当前栈中。\n" "\n" "\t\t在当前 Stack 中根据 KCL 文件创建、更新、删除资源。\n" -"\t\t默认情况下,在采取任何行动之前,kusion会生成一个执行计划,并提交给你批" +"\t\t默认情况下,在采取任何行动之前,Kusion 会生成一个执行计划,并提交给你批" "准。\n" "\n" "\t\t你可以检查计划详细信息,然后决定是否应采取或中止这些操作。" -#: pkg/cmd/check/check.go:13 -msgid "Check if KCL configurations in current directory ok to compile" -msgstr "检查当前目录中的 KCL 配置是否可以编译" +#: pkg/cmd/preview/preview.go:67 +#, fuzzy +msgid "Automatically show plan details with interactive options" +msgstr "预览后自动展示 apply 计划细节" -#: pkg/cmd/compile/compile.go:80 -msgid "Specify the configuration override path and value" -msgstr "指定配置覆盖路径和值" +#: pkg/cmd/destroy/destroy.go:13 +msgid "Delete the specified resources in runtime" +msgstr "删除运行时中指定的资源" -#: pkg/cmd/deps/deps.go:12 -msgid "Show KCL file dependency information" -msgstr "" +#: pkg/cmd/diff/diff.go:78 +msgid "Omit the dyff summary header. The default is false" +msgstr "省略 dyff 摘要标题,默认为否" -#: pkg/cmd/preview/preview.go:20 -#, fuzzy +#: pkg/cmd/diff/diff.go:80 +msgid "" +"Sort from and to by kubernetes resource order(non standard behavior). The " +"default is false" +msgstr "按 kubernetes 资源顺序排序(非标准行为)。默认为否" + +#: pkg/cmd/init/init.go:81 msgid "" "\n" -"\t\t# Preview with specifying work directory\n" -"\t\tkusion preview -w /path/to/workdir\n" -"\n" -"\t\t# Preview with specifying arguments\n" -"\t\tkusion preview -D name=test -D age=18\n" -"\n" -"\t\t# Preview with specifying setting file\n" -"\t\tkusion preview -Y settings.yaml\n" +"\t\t# Get name and description of internal templates\n" +"\t\tkusion init templates\n" "\n" -"\t\t# Preview with ignored fields\n" -"\t\tkusion preview --ignore-fields=\"metadata.generation,metadata." -"managedFields" +"\t\t# Get templates from specific templates repository\n" +"\t\tkusion init templates https://github.com// --online=true" msgstr "" "\n" -"\t\t# 使用指定工作目录进行预览\n" -"\t\tkusion preview -w /path/to/workdir\n" -"\n" -"\t\t# 使用指定参数预览\n" -"\t\tkusion preview -D name=test -D age=18\n" +"\t\t# 获取内置模板的名称和描述\n" +"\t\tkusion init templates\n" "\n" -"\t\t# 指定设置文件预览\n" -"\t\tkusion preview -Y settings.yaml" +"\t\t# 获取指定的在线仓库中的模板列表\n" +"\t\tkusion init templates https://github.com// —online=true" -#: pkg/cmd/apply/apply.go:62 +#: pkg/cmd/preview/preview.go:15 msgid "" -"After creating/updating/deleting the requested object, watch for changes" +"\n" +"\t\tPreview a series of resource changes within the stack.\n" +"\t\n" +"\t\tCreate or update or delete resources according to the KCL files within a " +"stack. By default,\n" +"\t\tKusion will generate an execution plan and present it for your approval " +"before taking any action." msgstr "" +"\n" +"\t\t预览 Stack 中的一系列资源更改。\n" +"\n" +"\t\t根据 Stack 内的 KCL 文件创建或更新或删除资源。\n" +"\t\t默认情况下,Kusion 会生成一个执行计划并在采取任何行动之前将其提交给您批" +"准。" -#: pkg/cmd/deps/deps.go:14 +#: pkg/cmd/compile/compile.go:22 msgid "" "\n" -"\t\tShow the KCL file dependency information in the current directory or the " -"specified workdir.\n" -" By default, it will list all the KCL files that are dependent on the " -"given package path." +"\t\t# Compile configuration in main.k into YAML format\n" +"\t\tkusion compile main.k\n" +"\t\n" +"\t\t# Compile main.k with arguments\n" +"\t\tkusion compile main.k -D name=test -D age=18\n" +"\t\n" +"\t\t# Compile main.k with arguments from settings.yaml\n" +"\t\tkusion compile main.k -Y settings.yaml\n" +"\t\n" +"\t\t# Compile main.k with work directory\n" +"\t\tkusion compile main.k -w appops/demo/dev\n" +"\t\n" +"\t\t# Compile with override\n" +"\t\tkusion compile -O __main__:appConfiguration.image=nginx:latest -a\n" +"\t\n" +"\t\t# Compile main.k and write result into output.yaml\n" +"\t\tkusion compile main.k -o output.yaml\n" +"\t\t\n" +"\t\t# Complie without output style and color\n" +"\t\tkusion compile --no-style=true" msgstr "" +"\n" +"\t\t# 将 main.k 中的配置编译成 YAML 格式\n" +"\t\tkusion compile main.k\n" +"\n" +"\t\t# 使用参数编译 main.k\n" +"\t\tkusion compile main.k -D name=test -D age=18\n" +"\n" +"\t\t# 使用来自 settings.yaml 的参数编译 main.k\n" +"\t\tkusion compile main.k -Y settings.yaml\n" +"\n" +"\t\t# 使用工作目录编译 main.k\n" +"\t\tkusion compile main.k -w appops/demo/dev\n" +"\n" +"\t\t# Override 当前 Stack 中的 KCL 配置\n" +"\t\tkusion compile -O __main__:appConfiguration.image=nginx:latest -a\n" +"\n" +"\t\t# 编译 main.k 并将结果写入 output.yaml\n" +"\t\tkusion compile main.k -o output.yaml\n" +"\t\t\n" +"\t\t# 编译输出不带样式和颜色\n" +"\t\tkusion compile —no-style=true" -#: pkg/cmd/init/init.go:52 -msgid "" -"Initialize with specified template. If not specified, a prompt will request " -"it" -msgstr "用指定的模板初始化。若不指定,将有提示请求获取" - -#: pkg/cmd/ls/ls.go:14 +#: pkg/cmd/diff/diff.go:25 msgid "" "\n" -"\t\tList all project and stack information in the current directory or the\n" -"\t\tspecify directory.\n" -"\t\tThe default output is in a human friendly format, and it also supports\n" -"\t\ta variety of formatted structure output." +"\t\tCompare files differences and display the delta.\n" +"\t\tSupport input file types are: YAML (http://yaml.org/) and JSON (http://" +"json.org/)." msgstr "" "\n" -"\t\t列出当前目录或指定目录中的所有项目和堆栈信息。\n" -"\t\t默认输出是人性化的格式,也支持多种格式的结构输出。" - -#: pkg/cmd/ls/ls.go:64 -#, fuzzy -msgid "Max display depth of the project and stack tree. One of 0,1,2" -msgstr "项目和堆栈树的最大显示深度。可选值:0、1、2" - -#: pkg/cmd/preview/preview.go:68 -msgid "Ignore differences of target fields" -msgstr "" - -#: pkg/cmd/preview/preview.go:70 -#, fuzzy -msgid "Specify the output format" -msgstr "指定输出文件" +"\t\t比较文件差异并显示增量。\n" +"\t\t支持的文件类型有: YAML (http://yaml.org/) 和 JSON (http://json.org/)。" -#: pkg/cmd/cmd.go:58 -#, fuzzy -msgid "Kusion manages the Kubernetes cluster by code" -msgstr "kusion 通过代码管理 Kubernetes 集群" +#: pkg/cmd/init/init.go:76 +msgid "List templates used to initialize a project" +msgstr "列出用于初始化 Project 的模板" -#: pkg/cmd/deps/deps.go:53 +#: pkg/cmd/init/init.go:78 msgid "" -"Paths to focus on to inspect. It cannot be empty and each path needs to be a " -"valid relative path from the workdir" +"\n" +"\t\tThis command gets the descriptions and definitions of the templates " +"which are used to initialize the project scaffolding." msgstr "" - -#: pkg/cmd/diff/diff.go:76 -msgid "Ignore order changes in lists. The default is false" -msgstr "忽略列表中的顺序变化,默认为否" - -#: pkg/cmd/ls/ls.go:12 -msgid "List all project and stack information" -msgstr "列出所有项目和堆栈信息" +"\n" +"\t\t该指令获取用于初始化 Project 脚手架的模板的描述和定义。" #: pkg/cmd/version/version.go:14 +#, fuzzy msgid "" "\n" "\t\t# Print the Kusion version\n" @@ -609,145 +562,222 @@ msgstr "" "\t\t# 打印 Kusion 版本\n" "\t\tkusion version" -#: pkg/cmd/destroy/destroy.go:14 +#: pkg/cmd/apply/apply.go:62 msgid "" -"\n" -"\t\tDelete resources by resource spec.\n" -"\n" -"\t\tOnly KCL files are accepted. Only one type of arguments may be " -"specified: filenames,\n" -"\t\tresources and names, or resources and label selector.\n" -"\n" -"\t\tNote that the destroy command does NOT do resource version checks, so if " -"someone submits an\n" -"\t\tupdate to a resource right when you submit a destroy, their update will " -"be lost along with the\n" -"\t\trest of the resource." -msgstr "" -"\n" -"\t\t通过资源规约删除资源。\n" -"\n" -"\t\t只接受 KCL 文件。只能指定一种类型的参数:文件名、资源、名称、资源或标签选" -"择器。\n" -"\n" -"\t\t请注意,destroy 命令不会进行资源版本检查,\n" -"\t\t因此如果有人在你提交销毁时提交了对资源的更新,\n" -"\t\t他们的更新将与资源一起丢失。" +"Preview the execution effect (always successful) without actually applying " +"the changes" +msgstr "dry-run 预览执行效果(总是成功)而不实际 apply 更改" -#: pkg/cmd/env/env.go:14 -#, fuzzy +#: pkg/cmd/deps/deps.go:51 +msgid "" +"Inspect direct of the dependency information. Valid values: up, down. " +"Defaults to up" +msgstr "Project 信息的输出格式。可选值:json、yaml、tree、human" + +#: pkg/cmd/init/init.go:15 msgid "" "\n" -" Env prints Kusion environment information.\n" -"\n" -" By default env prints information as a shell script (on Windows, a batch " -"file). If one\n" -" or more variable names is given as arguments, env prints the value of " -"each named variable\n" -" on its own line.\n" -"\n" -" The --json flag prints the environment in JSON format instead of as a " -"shell script.\n" +"\t\tThis command initializes the scaffolding for a project, generating a " +"project from an appointed template with correct structure.\n" "\n" -" For more about environment variables, see \"kusion env -h\"." +"\t\tThe scaffold templates can be retrieved from local or online. The built-" +"in templates are used by default, self-defined templates are also supported " +"by assigning the template repository path." msgstr "" "\n" -"Env 打印 Kusion 环境信息。\n" -"\n" -"默认情况下,env 将信息打印为 shell 脚本(在 Windows,是 bat 文件)。\n" -"如果一个或多个变量名作为参数给出,env 将每个变量的名和值打印在单独一行上。\n" -"\n" -"--json 标志以 JSON 格式而不是 shell 脚本打印环境变量。\n" +"\t\t该指令用于初始化一个 Project 脚手架,从选定的模板生成具备正确结构的 " +"Project。\n" "\n" -"有关环境变量的更多信息,请参阅 `kusion env -h`。" +"\t\t脚手架模板可以从本地或者线上获取。默认使用内置模板;若需要使用自定义的模" +"板,需要指定模板仓库的地址。" + +#: pkg/cmd/init/init.go:64 +msgid "Skip prompts and proceed with default values" +msgstr "跳过提示,使用默认值初始化 Project" + +#: pkg/cmd/compile/compile.go:13 +msgid "Compile KCL into YAML" +msgstr "将 KCL 编译成 YAML" + +#: pkg/cmd/compile/compile.go:63 +msgid "Specify the output file" +msgstr "指定输出文件" + +#: pkg/cmd/destroy/destroy.go:47 pkg/cmd/preview/preview.go:65 +msgid "Specify the operator" +msgstr "指定操作人" + +#: pkg/cmd/destroy/destroy.go:51 +msgid "Automatically show plan details after previewing it" +msgstr "预览后自动展示 apply 计划细节" #: pkg/cmd/env/env.go:50 #, fuzzy msgid "Print the environment in JSON format" msgstr "以 JSON 格式打印环境信息" +#: pkg/cmd/init/init.go:111 +msgid "" +"Specify the output format of templates. If specified, only support json for " +"now; if not, template name and description is given" +msgstr "" +"指定模板的输出格式。若指定,现在仅支持 json;若不指定,那么将打印模板的名称和" +"描述" + +#: pkg/cmd/check/check.go:13 +msgid "Check if KCL configurations in current directory ok to compile" +msgstr "检查当前目录中的 KCL 配置是否可以编译" + +#: pkg/cmd/init/init.go:55 +msgid "" +"Initialize with specified project name. If not specified, a prompt will " +"request it" +msgstr "用指定的 Project 名称初始化。若不指定,将有提示请求获取" + #: pkg/cmd/init/init.go:61 msgid "" "Use templates from online repository to initialize project, or use locally " "cached templates" msgstr "使用线上模板初始化 Project,否则使用本地缓存模板" +#: pkg/cmd/apply/apply.go:64 +msgid "" +"After creating/updating/deleting the requested object, watch for changes" +msgstr "在创建/更新/删除请求的对象后,观测变更" + +#: pkg/cmd/check/check.go:54 pkg/cmd/compile/compile.go:65 +msgid "Disable dumping None values" +msgstr "禁用转储 None 值" + +#: pkg/cmd/compile/compile.go:76 +msgid "Specify the work directory" +msgstr "指定工作目录" + +#: pkg/cmd/deps/deps.go:53 +msgid "" +"Paths to focus on to inspect. It cannot be empty and each path needs to be a " +"valid relative path from the workdir" +msgstr "" + #: pkg/cmd/deps/deps.go:55 msgid "" "Direct is set to \"down\", \"only\" means only the downstream project/stack " "list will be output. Valid values: project, stack. Defaults to project" msgstr "" -#: pkg/cmd/init/init.go:76 -msgid "List templates used to initialize a project" -msgstr "列出用于初始化 Project 的模板" +#: pkg/cmd/diff/diff.go:70 +msgid "" +"Swap and for comparison. Note that it is invalid when is " +"stdin. The default is false" +msgstr "交换 进行比较。注意 为标准输入时无效。默认为否" -#: pkg/cmd/init/init.go:81 +#: pkg/cmd/init/init.go:58 +msgid "" +"Force generating the scaffolding files, even if it would change the existing " +"files" +msgstr "强制生成脚手架文件,即使会更改现有文件" + +#: pkg/cmd/ls/ls.go:62 +msgid "" +"Output format of the project information. valid values: json, yaml, tree, " +"human" +msgstr "project 信息的输出格式。可选值:json、yaml、tree、human" + +#: pkg/cmd/cmd.go:67 +#, fuzzy msgid "" "\n" -"\t\t# Get name and description of internal templates\n" -"\t\tkusion init templates\n" +"\t\tKusion is the platform engineering engine of KusionStack. \n" +"\t\tIt delivers intentions to Kubernetes, Clouds, and On-Premise resources." +msgstr "" "\n" -"\t\t# Get templates from specific templates repository\n" -"\t\tkusion init templates https://github.com// --online=true" +"\t\tKusion 是 KusionStack 的平台工程引擎。\n" +"\t\t它将运维意图交付至 Kubernetes、云服务和本地部署的资源中。" + +#: pkg/cmd/apply/apply.go:23 +msgid "" +"\n" +"\t\t# Apply with specifying work directory\n" +"\t\tkusion apply -w /path/to/workdir\n" +"\t\n" +"\t\t# Apply with specifying arguments\n" +"\t\tkusion apply -D name=test -D age=18\n" +"\t\n" +"\t\t# Apply with specifying setting file\n" +"\t\tkusion apply -Y settings.yaml\n" +"\t\n" +"\t\t# Skip interactive approval of plan details before applying\n" +"\t\tkusion apply --yes\n" +"\t\t\n" +"\t\t# Apply without output style and color\n" +"\t\tkusion apply --no-style=true" msgstr "" "\n" -"\t\t# 获取内置模板的名称和描述\n" -"\t\tkusion init templates\n" +"\t\t# 指定工作目录 apply\n" +"\t\tkusion apply -w /path/to/workdir\n" "\n" -"\t\t# 获取指定的在线仓库中的模板列表\n" -"\t\tkusion init templates https://github.com// —online=true" - -#: pkg/cmd/check/check.go:54 pkg/cmd/compile/compile.go:63 -msgid "Disable dumping None values" -msgstr "禁用转储 None 值" - -#: pkg/cmd/check/check.go:56 pkg/cmd/compile/compile.go:65 -msgid "Specify the override option" -msgstr "指定覆盖选项" - -#: pkg/cmd/diff/diff.go:23 -msgid "Compare differences between input files and " -msgstr "比较输入文件 之间的差异" +"\t\t# 指定参数 apply\n" +"\t\tkusion apply -D name=test -D age=18\n" +"\n" +"\t\t# 指定配置文件 apply\n" +"\t\tkusion apply -Y settings.yaml\n" +"\n" +"\t\t# apply 前跳过计划的交互式审批\n" +"\t\tkusion apply —yes\n" +"\n" +"\t\t# apply 输出结果不带样式和颜色\n" +"\t\tkusion apply —no-style=true" -#: pkg/cmd/preview/preview.go:62 +#: pkg/cmd/compile/compile.go:15 #, fuzzy -msgid "Automatically show plan details with interactive options" -msgstr "预览后自动展示 apply 计划细节" - -#: pkg/cmd/env/env.go:12 -msgid "Print Kusion environment information" -msgstr "打印 Kusion 环境信息" - -#: pkg/cmd/deps/deps.go:18 msgid "" "\n" -"\t\t# List all the KCL files that are dependent by the given focus paths\n" -" kusion deps --focus path/to/focus1 --focus path/to/focus2\n" +"\t\tCompile one or more KCL files.\n" +"\t\n" +"\t\tThe KCL filename must be specified.\n" +"\t\tYou can specify a list of arguments to replace the placeholders defined " +"in KCL,\n" +"\t\tand output the compiled results to a file when using --output flag." +msgstr "" "\n" -"\t\t# List all the projects that depend on the given focus paths\n" -"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2\n" +"\t\t编译一个或多个 KCL 文件。\n" "\n" -"\t\t# List all the stacks that depend on the given focus paths\n" -"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 " -"--only stack\n" +"\t\t必须指定 KCL 文件名。\n" +"\t\t你可以指定参数列表来替换 KCL 中定义的占位符,\n" +"\t\t并在使用 --output 标志时将编译结果输出到文件。" + +#: pkg/cmd/destroy/destroy.go:25 +#, fuzzy +msgid "" "\n" -"\t\t# List all the projects that depend on the given focus paths, ignoring " -"some paths from entrance files in each stack\n" -"\t\tkusion deps --direct down --focus path/to/focus1 --focus path/to/focus2 " -"--ignore path/to/ignore" +"\t\t# Delete the configuration of current stack\n" +"\t\tkusion destroy" msgstr "" +"\n" +"\t\t# 删除 pod.k 中的配置\n" +"\t\tkusion destroy -f ./pod.k" -#: pkg/cmd/diff/diff.go:74 -msgid "Specify the output style. One of human and raw. The default is human" -msgstr "指定输出风格,human 和 raw 之一,默认值 human" +#: pkg/cmd/diff/diff.go:72 +#, fuzzy +msgid "Diff mode. One of noemal and . The default is normal ignore-added" +msgstr "差异模式。normal 和 ignore-added 之一。默认值 normal" -#~ msgid "Print the kusion version info" -#~ msgstr "打印 kusion 的版本信息" +#: pkg/cmd/init/init.go:52 +msgid "" +"Initialize with specified template. If not specified, a prompt will request " +"it" +msgstr "用指定的模板初始化。若不指定,将有提示请求获取" -#, fuzzy -#~ msgid "Print version info as versionShort string" -#~ msgstr "将版本信息打印成短版本字符串" +#: pkg/cmd/ls/ls.go:64 +msgid "Max display depth of the project and stack tree. One of 0,1,2" +msgstr "Project 和 Stack 树的最大显示深度。可选值:0、1、2" + +#: pkg/engine/backend/backend.go:42 +msgid "backend-config config state storage backend" +msgstr "backend-config 配置状态存储后端信息" + +#~ msgid "Print the kusion version info" +#~ msgstr "打印 Kusion 的版本信息" #, fuzzy #~ msgid "Print version info as JSON" @@ -757,6 +787,39 @@ msgstr "指定输出风格,human 和 raw 之一,默认值 human" #~ msgid "Print version info as YAML" #~ msgstr "将版本信息打印成 YAML 格式" +#, fuzzy +#~ msgid "Print version info as versionShort string" +#~ msgstr "将版本信息打印成短版本字符串" + +#~ msgid "" +#~ "\n" +#~ "\t\tThe Kusion command line tool is the entry point for users to use " +#~ "KusionStack. \n" +#~ "\t\tUsers can use the Kusion command line tool to complete all operation " +#~ "tasks.\n" +#~ "\t\t" +#~ msgstr "" +#~ "\n" +#~ "\t\tKusion 命令行工具是用户使用 KusionStack 的入口。 \n" +#~ "\t\t用户可以使用 Kusion 命令行工具完成所有的运维操作。\n" +#~ "\t\t" + +#~ msgid "Destroy a configuration stack to resource(s) by work directory" +#~ msgstr "通过工作目录销毁已应用到资源的配置栈" + +#~ msgid "Apply a configuration stack to resource(s) by work directory" +#~ msgstr "通过工作目录将配置栈应用到一个或多个资源" + +#~ msgid "Kusion manages the Kubernetes cluster by code" +#~ msgstr "kusion 通过代码管理 Kubernetes 集群" + +#, fuzzy +#~ msgid "" +#~ "\n" +#~ "\t\tKusion is a cloud-native programmable technology stack, which manages " +#~ "the Kubernetes cluster by code." +#~ msgstr "kusion 作为云原生可编程技术栈,通过代码管理 kubernetes 集群。" + #, fuzzy #~ msgid "" #~ "\n"