check / check (push) Waiting to run
main's tree, with next merged on 26 October, as one commit onto prod, on sneak's order. Model: opus-5-5 Co-authored-by: clawbot <clawbot@noreply.example.org>
17 lines
527 B
Go
17 lines
527 B
Go
package cli
|
|
|
|
import "io"
|
|
|
|
// CheckCIDR exposes the check-cidr subcommand to the external tests,
|
|
// which read what it writes to stderr.
|
|
func CheckCIDR(stderr io.Writer, cidr string) int {
|
|
return checkCIDR(stderr, cidr)
|
|
}
|
|
|
|
// PrepareDataDir exposes the prepare-data-dir subcommand to the
|
|
// external tests, which give it a volume and a user of their own in
|
|
// place of /data and netwatch.
|
|
func PrepareDataDir(stderr io.Writer, volume, dataDir, username string) int {
|
|
return prepareDataDir(stderr, volume, dataDir, username)
|
|
}
|