Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit 5a6c2ba

Browse files
committed
add back -r flag as deprecated
Signed-off-by: Matthew Peveler <matt.peveler@popsql.com>
1 parent 64504b3 commit 5a6c2ba

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/bin/command.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,14 @@ function runFileFunction(func: (cog: Cog) => void, file: string): void {
122122

123123
program.command('load [file]')
124124
.description('Load and run a cog application.')
125+
.option('-r, --recursive', '[DEPRECATED] does nothing')
125126
.action((file: string) => {
126127
runFileFunction(bridge.load, file);
127128
});
128129

129130
program.command('reload [file]')
130131
.description('Stop, unload and load cog again.')
132+
.option('-r, --recursive', '[DEPRECATED] does nothing')
131133
.action((file: string) => {
132134
runFileFunction(bridge.reload, file);
133135
});
@@ -168,19 +170,22 @@ function runCogFunction(func: (cogId: string) => void, cogId: string): void {
168170

169171
program.command('start <cog_id|path>')
170172
.description('Start a stopped cog.')
173+
.option('-r, --recursive', '[DEPRECATED] does nothing')
171174
.action((cogId: string) => {
172175
runCogFunction(bridge.start, cogId);
173176
});
174177

175178
program.command('stop <cog_id|path>')
176179
.description('Stop a running cog.')
180+
.option('-r, --recursive', '[DEPRECATED] does nothing')
177181
.action((cogId: string) => {
178182
runCogFunction(bridge.stop, cogId);
179183
});
180184

181185
program.command('unload <cog_id|path>')
182186
.alias('remove')
183187
.description('Unload a stopped cog.')
188+
.option('-r, --recursive', '[DEPRECATED] does nothing')
184189
.action((cogId: string) => {
185190
runCogFunction(bridge.unload, cogId);
186191
});

0 commit comments

Comments
 (0)