mirror of
https://github.com/anotherhadi/usbguard-tui.git
synced 2026-05-11 22:02:34 +02:00
@@ -74,6 +74,10 @@ func extractField(rule, field string) string {
|
||||
return rest[:end]
|
||||
}
|
||||
|
||||
func NixOSRule(dev Device, status Status) string {
|
||||
return fmt.Sprintf("%s id %s name \"%s\"", status, dev.VidPid, dev.Name)
|
||||
}
|
||||
|
||||
func extractUnquoted(rule, field string) string {
|
||||
prefix := field + " "
|
||||
idx := strings.Index(rule, prefix)
|
||||
|
||||
Reference in New Issue
Block a user