13 Commits

Author SHA1 Message Date
d38136c0dc refactor: clean up unused code, fix typos, improve docs (#7)
* refactor: clean up unused code, fix typos, improve docs

- Remove unused 'killed' const and 'unitTypes' var (staticcheck U1000)
- Replace regexp with strings.TrimSuffix+switch in isFailed for consistency
- Fix typo: 'programatically' -> 'programmatically'
- Fix typo: 'an an int' -> 'as an int' in README and helpers.go
- Add missing godoc comments on exported helper functions
- Bump minimum Go version from 1.18 to 1.21

* refactor: use unused constants instead of removing them

- Export unitTypes as UnitTypes and add HasValidUnitSuffix helper
- Use killed const (exit code 130) in execute() to detect SIGINT
- Update go.mod to go 1.26
2026-02-23 00:01:59 -05:00
Dat Boi Diego
14c9f0f70d chore: add "support" for non-linux platforms (#6) 2025-09-20 19:34:22 -04:00
21fce7918e add linux build tags to restrict compilation to linux targets 2025-02-13 16:49:49 -08:00
7bd5bef0cb fix broken error filtration 2023-06-28 23:43:20 -07:00
0075dc6b4d update to fix some tests, remove panics, and wrap errors 2023-06-17 23:18:28 -04:00
4e38d03629 move panic from init to exec 2021-06-06 04:55:07 -07:00
e941c90f0d Migrates many tests to errors_test 2021-05-16 22:00:50 -07:00
34f11bfcd1 Add masked unit tests for enable and disable 2021-05-15 20:02:05 -07:00
aaa5f28ba7 adds table-driven tests 2021-05-15 17:39:41 -07:00
8a7c865b5f adds option structs, ready for Show implementation 2021-05-15 13:49:34 -07:00
feff1f6edd check stderr before reporting back error 1 2021-05-14 17:53:54 -07:00
2517125d98 preliminary version of enable complete 2021-05-14 16:44:39 -07:00
8bb696fb51 use CommandContext 2021-05-14 16:13:07 -07:00