Project represent location of actual project. get project file should base on it
| 42 | // Project represent location of actual project. |
| 43 | // get project file should base on it |
| 44 | type Project interface { |
| 45 | // MarshalPlaybook project file to playbook. |
| 46 | MarshalPlaybook() (*kkprojectv1.Playbook, error) |
| 47 | // Stat file or dir in project |
| 48 | Stat(path string) (os.FileInfo, error) |
| 49 | // WalkDir dir in project |
| 50 | WalkDir(path string, f fs.WalkDirFunc) error |
| 51 | // ReadFile file or dir in project |
| 52 | ReadFile(path string) ([]byte, error) |
| 53 | // Rel path file or dir in project |
| 54 | Rel(root string, path string) (string, error) |
| 55 | } |
| 56 | |
| 57 | // New creates a new Project instance based on the provided playbook. |
| 58 | // If project address is git format, it creates a git project. |
no outgoing calls
no test coverage detected