Add command to install shell completion #309
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package meta
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -17,7 +17,8 @@ import (
|
|||
|
||||
// CmdAutocomplete manages autocompletion
|
||||
var CmdAutocomplete = cli.Command{
|
||||
Name: "autocomplete",
|
||||
Name: "shellcompletion",
|
||||
Aliases: []string{"autocomplete"},
|
||||
Usage: "Install shell completion for tea",
|
||||
Description: "Install shell completion for tea",
|
||||
ArgsUsage: "<shell type> (bash, zsh, powershell)",
|
20
cmd/meta.go
20
cmd/meta.go
|
@ -1,20 +0,0 @@
|
|||
// Copyright 2020 The Gitea Authors. All rights reserved.
|
||||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"code.gitea.io/tea/cmd/meta"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
// CmdMeta represents a sub command
|
||||
var CmdMeta = cli.Command{
|
||||
Name: "meta",
|
||||
Usage: "Operations on tea itself",
|
||||
Description: `Operations on tea itself`,
|
||||
Subcommands: []*cli.Command{
|
||||
&meta.CmdAutocomplete,
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user