Commit Graph

20 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
0075dc6b4d update to fix some tests, remove panics, and wrap errors 2023-06-17 23:18:28 -04:00
33828cf7b9 gofumpt against systemctl + add reenable 2022-10-23 23:26:52 -07:00
e44344ee7d define unit in README 2022-03-20 23:44:30 -07:00
c8050d2258 fix whitespace 2022-03-20 23:43:30 -07:00
ae23e6ecb9 Fix lowercase typo 2022-03-20 23:42:35 -07:00
c9dec8a0b7 Update README to fix namespace error 2022-03-20 23:41:14 -07:00
dd48d610dc Adds helper function for getting NRestarts 2021-05-16 19:41:44 -07:00
1ce6ec028a Add documentation and enable example 2021-05-16 18:04:21 -07:00
c0d19bd507 spellcheck on README 2021-05-15 20:15:52 -07:00
45fda65ede updates to README 2021-05-15 20:13:36 -07:00
e7bbc166c3 Updates readme to reflect implementation 2021-05-15 20:06:27 -07:00
184bbc4936 Test disable function 2021-05-15 19:14:53 -07:00
aaa5f28ba7 adds table-driven tests 2021-05-15 17:39:41 -07:00
ba0ac781ef helper functions added 2021-05-15 15:58:57 -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
f9f44604e1 rearrange ctx parameter to match stdlib 2021-05-14 16:20:58 -07:00
7762c3af12 stubbs out errors, adds mask and unmask to scope 2021-05-14 14:46:38 -07:00
e3bcf1f239 Initial commit 2021-05-14 14:27:29 -07:00