feat(cli): add ctrld diag for provisioning support

This commit is contained in:
Anthony Wong
2026-09-04 16:47:29 +07:00
committed by Cuong Manh Le
parent 0f821a7907
commit e8e04ae094
8 changed files with 987 additions and 5 deletions
+5 -1
View File
@@ -253,7 +253,11 @@ func writeProvisionResult(r *provisionResult) error {
}
func readProvisionResult() (*provisionResult, error) {
buf, err := os.ReadFile(provisionResultPath())
return readProvisionResultAt(provisionResultPath())
}
func readProvisionResultAt(path string) (*provisionResult, error) {
buf, err := os.ReadFile(path)
if err != nil {
return nil, err
}