mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
make some wsh commands hidden
This commit is contained in:
parent
766a976718
commit
16d01b43eb
@ -12,6 +12,7 @@ import (
|
|||||||
|
|
||||||
var serverCmd = &cobra.Command{
|
var serverCmd = &cobra.Command{
|
||||||
Use: "connserver",
|
Use: "connserver",
|
||||||
|
Hidden: true,
|
||||||
Short: "remote server to power wave blocks",
|
Short: "remote server to power wave blocks",
|
||||||
Args: cobra.NoArgs,
|
Args: cobra.NoArgs,
|
||||||
Run: serverRun,
|
Run: serverRun,
|
||||||
|
@ -16,6 +16,7 @@ func init() {
|
|||||||
|
|
||||||
var htmlCmd = &cobra.Command{
|
var htmlCmd = &cobra.Command{
|
||||||
Use: "html",
|
Use: "html",
|
||||||
|
Hidden: true,
|
||||||
Short: "Launch a demo html-mode terminal",
|
Short: "Launch a demo html-mode terminal",
|
||||||
Run: htmlRun,
|
Run: htmlRun,
|
||||||
PreRunE: preRunSetupRpcClient,
|
PreRunE: preRunSetupRpcClient,
|
||||||
|
@ -18,8 +18,9 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var rcfilesCmd = &cobra.Command{
|
var rcfilesCmd = &cobra.Command{
|
||||||
Use: "rcfiles",
|
Use: "rcfiles",
|
||||||
Short: "Generate the rc files needed for various shells",
|
Hidden: true,
|
||||||
|
Short: "Generate the rc files needed for various shells",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
home := wavebase.GetHomeDir()
|
home := wavebase.GetHomeDir()
|
||||||
waveDir := filepath.Join(home, ".waveterm")
|
waveDir := filepath.Join(home, ".waveterm")
|
||||||
|
@ -21,8 +21,9 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var shellCmd = &cobra.Command{
|
var shellCmd = &cobra.Command{
|
||||||
Use: "shell",
|
Use: "shell",
|
||||||
Short: "Print the login shell of this user",
|
Hidden: true,
|
||||||
|
Short: "Print the login shell of this user",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
WriteStdout(shellCmdInner())
|
WriteStdout(shellCmdInner())
|
||||||
},
|
},
|
||||||
|
@ -14,8 +14,9 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var shellCmd = &cobra.Command{
|
var shellCmd = &cobra.Command{
|
||||||
Use: "shell",
|
Use: "shell",
|
||||||
Short: "Print the login shell of this user",
|
Hidden: true,
|
||||||
|
Short: "Print the login shell of this user",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
shellCmdInner()
|
shellCmdInner()
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user