INNER CODE UNIT · Go

runProject

eko/monday · cmd/main.go:168

func runProject(ctx context.Context, conf *config.Config, choice string) {
	layout := ui.NewLayout(uiEnabled)
	layout.Init()
	layout.SetProject(choice)
	layout.SetVersion(Version)

	// Retrieve selected project configuration by its name
	project, err := conf.GetProjectByName(choice)
	if err != nil {
		fmt.Printf("❌  %v\n", err)
		fmt.Printf("Run '%s' to see the available projects\n", projectNameStyle.Render("monday list"))
		os.Exit(1)
	}

	// Prepend global configurations
	project.PrependApplications(conf.Applications)
	project.PrependForwards(conf.Forwards)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…