(path string)
| 116 | } |
| 117 | |
| 118 | func (self *Shell) CreateDir(path string) *Shell { |
| 119 | fullPath := filepath.Join(self.dir, path) |
| 120 | if err := os.MkdirAll(fullPath, 0o755); err != nil { |
| 121 | self.fail(fmt.Sprintf("error creating directory: %s\n%s", fullPath, err)) |
| 122 | } |
| 123 | |
| 124 | return self |
| 125 | } |
| 126 | |
| 127 | func (self *Shell) UpdateFile(path string, content string) *Shell { |
| 128 | fullPath := filepath.Join(self.dir, path) |
no test coverage detected