INNER CODE UNIT · Go

printLocalRunWarn

umputun/spot · cmd/spot/main.go:327

func printLocalRunWarn(dbg bool) {
	if dbg {
		log.Printf("[WARN] local mode enabled - all commands will run locally without SSH")
		return
	}
	msg := color.New(color.FgHiYellow).SprintfFunc()("local mode - all commands will run locally without SSH\n")
	fmt.Print(msg)
}

func inventoryFile(inventory string) (string, error) {
	exInventory, err := expandPath(inventory)
	if err != nil {
		return "", fmt.Errorf("can't expand inventory path %q: %w", exInventory, err)
	}
	return exInventory, nil
}

func makePlaybook(opts options, inventory string) (*config.PlayBook, []string, error) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…