tangled
alpha
login
or
join now
stevedylan.dev
/
sequoia
A CLI for publishing standard.site documents to ATProto
sequoia.pub
standard
site
lexicon
cli
publishing
30
fork
atom
overview
issues
5
pulls
1
pipelines
chore: added ability to exit during init flow
stevedylan.dev
1 week ago
ed16a0cb
44c3f8e2
+7
1 changed file
expand all
collapse all
unified
split
packages
cli
src
commands
init.ts
+7
packages/cli/src/commands/init.ts
···
11
11
description: "Initialize a new publisher configuration",
12
12
args: {},
13
13
handler: async () => {
14
14
+
// Handle Ctrl+C to exit immediately instead of cancelling one prompt at a time
15
15
+
const exitHandler = () => {
16
16
+
consola.info("\nCancelled");
17
17
+
process.exit(0);
18
18
+
};
19
19
+
process.on("SIGINT", exitHandler);
20
20
+
14
21
// Check if config already exists
15
22
const existingConfig = await findConfig();
16
23
if (existingConfig) {