Correct spelling mistakes

Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
pull/6882/head
yuxiaobo 5 years ago
parent 7d9084eb6c
commit d683a431e2

@ -91,7 +91,7 @@ func (o *createOptions) run(out io.Writer) error {
if o.starter != "" { if o.starter != "" {
// Create from the starter // Create from the starter
lstarter := filepath.Join(o.starterDir, o.starter) lstarter := filepath.Join(o.starterDir, o.starter)
// If path is absolute, we dont want to prefix it with helm starters folder // If path is absolute, we don't want to prefix it with helm starters folder
if filepath.IsAbs(o.starter) { if filepath.IsAbs(o.starter) {
lstarter = o.starter lstarter = o.starter
} }

@ -175,7 +175,7 @@ __helm_list_charts()
# 1- There are other completions found (if there are no completions, # 1- There are other completions found (if there are no completions,
# the shell will do file completion itself) # the shell will do file completion itself)
# 2- If there is some input from the user (or else we will end up # 2- If there is some input from the user (or else we will end up
# lising the entire content of the current directory which will # listing the entire content of the current directory which will
# be too many choices for the user to find the real repos) # be too many choices for the user to find the real repos)
if [ $wantFiles -eq 1 ] && [ -n "${out[*]}" ] && [ -n "${cur}" ]; then if [ $wantFiles -eq 1 ] && [ -n "${out[*]}" ] && [ -n "${cur}" ]; then
for file in $(\ls); do for file in $(\ls); do

@ -51,7 +51,7 @@ type Index struct {
const sep = "\v" const sep = "\v"
// NewIndex creats a new Index. // NewIndex creates a new Index.
func NewIndex() *Index { func NewIndex() *Index {
return &Index{lines: map[string]string{}, charts: map[string]*repo.ChartVersion{}} return &Index{lines: map[string]string{}, charts: map[string]*repo.ChartVersion{}}
} }

Loading…
Cancel
Save