Skip to content

Commit

Permalink
Merge pull request #12 from zheng1/refactor
Browse files Browse the repository at this point in the history
Remove desc from 'create' command
  • Loading branch information
zheng1 authored Oct 28, 2022
2 parents aa0fe08 + f81f931 commit ecbcf4b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ func run(cmd *cobra.Command, args []string) error {
}
name := promptGetRequiredInput(extensionNamePrompt)

extensionDescPrompt := promptContent{
errorMsg: "Extension description can't be empty",
label: "Please input extension description",
}
desc := promptGetInput(extensionDescPrompt)

categoryPromptContent := promptContent{
"Please provide a category.",
fmt.Sprintf("What category does %s belong to?", name),
Expand All @@ -62,7 +56,6 @@ func run(cmd *cobra.Command, args []string) error {

extensionConfig := extension.Config{
Name: name,
Desc: desc,
Category: category,
Author: author,
Email: email,
Expand Down
1 change: 0 additions & 1 deletion pkg/extension/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

type Config struct {
Name string
Desc string
Author string
Email string
Category string
Expand Down
1 change: 0 additions & 1 deletion pkg/extension/template_chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package extension
const (
tplExtensionYaml = `apiVersion: v1
name: [[ .Name ]]
description: [[ .Desc ]]
version: 0.1.0
displayName:
zh: 示例扩展组件
Expand Down

0 comments on commit ecbcf4b

Please sign in to comment.