github.com/tilotech/tilores-cli@v0.28.0/internal/pkg/step/chdir.go (about)

     1  package step
     2  
     3  import "os"
     4  
     5  // Chdir creates a step that changes the directory to the provided path.
     6  func Chdir(path string) Step {
     7  	return func() error {
     8  		return os.Chdir(path)
     9  	}
    10  }