14 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
451a949ace add new properties, socket finder 2025-02-18 00:30:12 -08:00
21fce7918e add linux build tags to restrict compilation to linux targets 2025-02-13 16:49:49 -08:00
54f4f7a235 add IsSystemd checker 2025-02-12 19:21:48 -08:00
fa15432121 add ability to list all units 2024-08-08 15:37:04 -07:00
a82f845b84 add IsRunning helper 2023-06-20 23:49:23 -04:00
c9e7f79f8c add IsMasked utility 2023-06-20 23:40:22 -04:00
5da4924315 gofumpt against remaining go files 2022-10-23 23:28:19 -07:00
701893ebbd Properly return the zero time for invalid timestamps 2021-05-17 10:59:09 -07:00
dd48d610dc Adds helper function for getting NRestarts 2021-05-16 19:41:44 -07:00
3fcd88d966 Clean up errors and messages 2021-05-16 16:17:12 -07:00
b1346b7992 Finish tests for helper methods 2021-05-15 19:07:47 -07:00
ba0ac781ef helper functions added 2021-05-15 15:58:57 -07:00