Skip to content

Commit

Permalink
cleanup before go generate (and multi-arch builds using zig).
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Jun 26, 2022
1 parent eefdc54 commit b4adf3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions example.collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ devices:
########################################################################################################################

#collect:
# metric:
# enable: true
# command: '-a -o on -S on'
# long:
# enable: false
# command: ''
Expand Down
4 changes: 2 additions & 2 deletions webapp/backend/pkg/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const NotifyLevelFail = "fail"
const NotifyLevelFailScrutiny = "fail_scrutiny"
const NotifyLevelFailSmart = "fail_smart"

//go:generate stringer -type=AttributeStatus
type AttributeStatus uint8

const (
// AttributeStatusPassed binary, 1,2,4,8,16,32,etc
AttributeStatusPassed AttributeStatus = 0
Expand All @@ -29,8 +29,8 @@ func AttributeStatusClear(b, flag AttributeStatus) AttributeStatus { return b &
func AttributeStatusToggle(b, flag AttributeStatus) AttributeStatus { return b ^ flag }
func AttributeStatusHas(b, flag AttributeStatus) bool { return b&flag != 0 }

//go:generate stringer -type=DeviceStatus
type DeviceStatus uint8

const (
// DeviceStatusPassed binary, 1,2,4,8,16,32,etc
DeviceStatusPassed DeviceStatus = 0
Expand Down

0 comments on commit b4adf3d

Please sign in to comment.