code

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 11 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(c *cli.Context) error {
		client := app.MustClient(c)

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

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

		if err != nil {
			return err
		}

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

		return startCode(c.Context, 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