feat: publish codex retry gateway
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import {
|
||||
DEFAULT_STATE_ROOT,
|
||||
parseOptions,
|
||||
stopGateway,
|
||||
} from "./admin-lib.mjs";
|
||||
|
||||
async function main() {
|
||||
const options = parseOptions(process.argv, { booleanFlags: ["quiet"] });
|
||||
const message = await stopGateway({
|
||||
stateRoot: options.stateRoot || DEFAULT_STATE_ROOT,
|
||||
quiet: Boolean(options.quiet),
|
||||
});
|
||||
|
||||
if (message) {
|
||||
process.stdout.write(`${message}\n`);
|
||||
}
|
||||
}
|
||||
|
||||
main().catch((error) => {
|
||||
process.stderr.write(`${error?.stack || error}\n`);
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in New Issue
Block a user