Skip to content

[Request]: Require start CLI subcommand for service plugins. #653

@jglogan

Description

@jglogan

Feature or enhancement request details

For #370 we need a way to run a one-time action (triggering the local network privacy alert) for container-runtime-linux independently of running it to start a sandbox service.

The need for this may not be as pressing now that we don't runAtLoad the containers when we load them at startup, but we can future-proof these plugins by requiring that all service plugins implement a start subcommand for running the actual service. For container-runtime-linux, this allows adding a prep or similar command to do the alert trigger, when and if we need it.

Initially we can make start backward compatible by using the defaultCommand capability of swift-argument-parser. In a couple of releases we can make the breaking change of removing the defaultCommand and providing either a migration command or script for container plists that still don't use start.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

nextItems in scope for the next few milestones

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions