Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "code", Usage: "run cluster VS Code", Flags: []cli.Flag{ app.NamespaceFlag, &cli.StringFlag{ Name: "stack", Usage: "language stack", }, app.PortsFlag, }, Action: func(c *cli.Context) error { client := app.MustClient(c) path, err := os.Getwd() if err != nil { return err } stacks := []string{ "default", "dotnet", "golang", "java", } stack := c.String("stack") if stack == "" { i, _, err := cli.Select("select stack", stacks) if err != nil { return err } stack = stacks[i] } if stack == "latest" || stack == "default" { stack = "" } port := app.MustPortOrRandom(c, 8888) namespace := app.Namespace(c) if namespace == "" { namespace = client.Namespace() } tunnels, _ := app.Ports(c) return RunCode(c.Context, client, stack, port, namespace, path, tunnels) }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.