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) }