Commit Graph

6 Commits

Author SHA1 Message Date
2f04c28cc1 chore: update Go 1.26.2, document all helpers in README, use prepareArgs consistently (#12)
- Bump go.mod from 1.26.1 to 1.26.2
- Add all helper functions to README (GetUnits, GetMaskedUnits,
  GetSocketsForServiceUnit, IsSystemd, IsMasked, IsRunning,
  HasValidUnitSuffix)
- Remove unused fmt import from README example
- Refactor GetSocketsForServiceUnit, GetUnits, GetMaskedUnits to use
  prepareArgs instead of manual arg construction
- Add Go 1.26.2 to CI test matrix
2026-04-12 10:27:36 +02:00
038fbe1a17 fix(errors): prioritize permission errors over 'does not exist' warnings (#11)
filterErr checked 'does not exist' before 'Interactive authentication
required', so when systemd printed both (common for mask/unmask on
non-installed units as a non-root user), the wrong error was returned.

Reorder checks so permission, bus, and masked errors take priority over
existence warnings. Add tests covering mixed-stderr scenarios.

Also:
- CI: install and start nginx so user + root tests pass
- CI: run tests as both user and root for full coverage
- Bump Go 1.26 → 1.26.1
2026-03-06 11:38:03 -05:00
7253c912ca ci: add test pipeline with codecov, staticcheck, and race detection (#10)
* ci: add test pipeline with codecov, staticcheck, and race detection

- Build/test matrix: Go 1.25 + 1.26
- Race detection enabled for all tests
- Coverage uploaded to Codecov (latest Go only)
- staticcheck lint step
- Go module caching via setup-go

* ci: drop Go 1.25 from matrix (go.mod requires 1.26)
2026-03-05 17:39:38 -05:00
f1979375cd add sponsorship 2021-07-05 21:08:33 -07:00
6940870de8 Revert "Create go.yml"
This reverts commit 84dc669dda.
2021-05-15 20:22:40 -07:00
84dc669dda Create go.yml 2021-05-16 03:18:49 +00:00