forked from rosa/hakurei
cmd/mbf: print all available handles
Useful for scripting. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
+4
-1
@@ -21,7 +21,10 @@ func commandInfo(
|
||||
r *rosa.Report,
|
||||
) (err error) {
|
||||
if len(args) == 0 {
|
||||
return errors.New("info requires at least 1 argument")
|
||||
for _, h := range rosa.Native().CollectAll() {
|
||||
fmt.Println(h)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// recovered by HandleAccess
|
||||
|
||||
Reference in New Issue
Block a user