Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,20 @@ package cmd

import (
"fmt"
"github.com/deckarep/golang-set"

mapset "github.com/deckarep/golang-set"

"io/ioutil"
"math/rand"
"strings"
"time"

"github.com/spf13/cobra"
"github.com/wagoodman/bashful/pkg/config"
"github.com/wagoodman/bashful/pkg/log"
"github.com/wagoodman/bashful/pkg/runtime"
"github.com/wagoodman/bashful/pkg/runtime/handler"
"github.com/wagoodman/bashful/utils"
"io/ioutil"
"math/rand"
"strings"
"time"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apologies for the go fmt or goimports noise.

)

// todo: put these in a cli struct instance instead, then most logic can be in the cli struct
Expand Down Expand Up @@ -83,7 +85,8 @@ var runCmd = &cobra.Command{
yamlString, err := ioutil.ReadFile(cli.YamlPath)
utils.CheckError(err, "Unable to read yaml config.")

fmt.Print("\033[?25l") // hide cursor
fmt.Print("\033[?25l") // hide cursor
defer fmt.Print("\033[?25h") // show cursor
Run(yamlString, cli)

},
Expand Down