code

package
v0.2.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "code",
	Usage: "start temporary Code IDE",

	Category: utility.Category,

	Flags: []cli.Flag{
		app.PortFlag(""),
	},

	Action: func(ctx context.Context, cmd *cli.Command) error {
		client := app.MustClient(ctx, cmd)

		items := []string{
			"default",
			"golang",
			"python",
			"java",
			"dotnet",
		}

		i, _, err := cli.Select("select stack", items)

		if err != nil {
			return err
		}

		stack := strings.ToLower(items[i])
		port := app.MustPortOrRandom(ctx, cmd, "", 3000)

		return startCode(ctx, client, stack, port)
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL