Skip to content

Commit

Permalink
internal/cmd: disable experimental cmds (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
adambabik authored Jan 26, 2023
1 parent 1e35d6e commit 6e64c23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions internal/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ func serverCmd() *cobra.Command {
)

cmd := cobra.Command{
Use: "server",
Short: "Start a server with various services and a gRPC interface.",
Hidden: true,
Use: "server",
Short: "Start a server with various services and a gRPC interface.",
Long: `The server provides two services: kernel and parser.
The parser allows serializing and deserializing markdown content.
Expand Down
9 changes: 5 additions & 4 deletions internal/cmd/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ func shellCmd() *cobra.Command {
)

cmd := cobra.Command{
Use: "shell",
Short: "Activate runme shell.",
Long: "Activate runme shell. This is an experimental feature.",
Args: cobra.NoArgs,
Hidden: true,
Use: "shell",
Short: "Activate runme shell.",
Long: "Activate runme shell. This is an experimental feature.",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) (err error) {
if promptStr == "" {
prompt, err := kernel.DetectPrompt(commandName)
Expand Down

0 comments on commit 6e64c23

Please sign in to comment.