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.
Click to show internal directories.
Click to hide internal directories.