dream

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "dream",
	Usage: "Starts and interfaces with a local taubyte network.  All leading arguments to `tau dream ...` are passed to dreamland",
	Flags: []cli.Flag{
		&cli.BoolFlag{
			Name:  "cache",
			Usage: fmt.Sprintf("caches the universe in `%s` keeping data for subsequent restarts", dreamCacheLocation),
		},
	},
	Action: func(c *cli.Context) error {
		project, err := projectLib.SelectedProjectInterface()
		if err != nil {
			return err
		}

		h := projectLib.Repository(project.Get().Name())
		projectRepositories, err := h.Open()
		if err != nil {
			return err
		}

		branch, err := projectRepositories.CurrentBranch()
		if err != nil {
			return err
		}

		baseStartDream := []string{"new", "multiverse", "--bind", defaultBind, "--branch", branch}
		if c.IsSet("cache") {
			return dreamLib.Execute(append(baseStartDream, cacheDream...)...)
		} else {
			return dreamLib.Execute(baseStartDream...)
		}
	},

	Subcommands: []*cli.Command{
		injectCommand,
		attachCommand,
		build.Command,
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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