studio

package
v0.0.0-...-93ee572 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RmCmd = &cobra.Command{
	Use:   "rm",
	Short: "Command to remove a Biome studio",
	Run: func(command *cobra.Command, args []string) {
		dir, err := os.Getwd()
		if err != nil {
			panic(err)
		}
		imageName := generateImageName(generateContainerName(dir))
		cli, err := client.NewEnvClient()
		if err != nil {
			panic(err)
		}
		removeImage(cli, imageName)
	},
}

RmCmd ...

View Source
var RunCmd = &cobra.Command{
	Use:     "enter",
	Aliases: []string{"build"},
	Short:   "Command to remove a Biome studio",
	Run: func(command *cobra.Command, args []string) {
		dir, err := os.Getwd()
		if err != nil {
			panic(err)
		}
		containerName := generateContainerName(dir)
		cli, err := client.NewEnvClient()
		if err != nil {
			panic(err)
		}

		args = append([]string{command.CalledAs()}, args...)

		err = runContainer(cli, args, dir, containerName)

		commitContainer(cli, containerName)

		removeContainer(cli, containerName)
		if err != nil {
			ui.Fatal(err)
		}
	},
}

RunCmd ...

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