github.com/fnando/bolt@v0.0.4-0.20231107225351-5241e4d187b8/cmd/bolt.go (about)

     1  package main
     2  
     3  import (
     4  	"os"
     5  
     6  	"github.com/fnando/bolt/common"
     7  	bolt "github.com/fnando/bolt/internal"
     8  )
     9  
    10  func main() {
    11  	workingDir, _ := os.Getwd()
    12  	homeDir, _ := os.UserHomeDir()
    13  
    14  	exitcode := bolt.Run(
    15  		workingDir,
    16  		homeDir,
    17  		common.Output{Stdout: os.Stdout, Stderr: os.Stderr},
    18  	)
    19  
    20  	os.Exit(exitcode)
    21  }