Skip to content

Commit

Permalink
fix(): change "清除" to "清理"
Browse files Browse the repository at this point in the history
  • Loading branch information
yliu7949 authored Jun 28, 2023
1 parent 6490cd5 commit dafac22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/ks/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ func LogoutCmd() *cobra.Command {
return cmdLogout
}

// CleanCmd 清除指定目录下的所有临时文件
// CleanCmd 清理指定目录下的所有临时文件
func CleanCmd() *cobra.Command {
var quiet bool
var cmdClean = &cobra.Command{
Use: "clean",
Short: "清除指定目录下的所有tmp临时文件",
Long: `清除指定目录下的所有tmp临时文件.`,
Short: "清理指定目录下的所有tmp临时文件",
Long: `清理指定目录下的所有tmp临时文件.`,
Run: func(cmd *cobra.Command, args []string) {
if path[len(path)-1:] != `\` && path[len(path)-1:] != "/" {
path = path + "/"
Expand All @@ -264,7 +264,7 @@ func CleanCmd() *cobra.Command {
continue
}
if !quiet {
fmt.Println("已清除文件:", file.Name())
fmt.Println("已清理文件:", file.Name())
}
}
}
Expand Down

0 comments on commit dafac22

Please sign in to comment.