optimize the perf and support more features

This commit is contained in:
Lei Xue
2026-03-14 11:45:35 +08:00
parent 7e7ebacd9d
commit 00cfac3d24
56 changed files with 6340 additions and 1019 deletions

View File

@@ -86,6 +86,9 @@ func createTarget(cli *client.Client, opts api.TargetCreateRequest) error {
if err != nil {
return err
}
if tgt == nil {
return fmt.Errorf("target creation returned nil")
}
fmt.Printf("Target %s successfully created\n", tgt.Name)
return nil
}