|
@@ -14,12 +14,17 @@ export const AttachCommand = cmd({
|
|
|
.option("dir", {
|
|
.option("dir", {
|
|
|
type: "string",
|
|
type: "string",
|
|
|
description: "directory to run in",
|
|
description: "directory to run in",
|
|
|
|
|
+ })
|
|
|
|
|
+ .option("session", {
|
|
|
|
|
+ alias: ["s"],
|
|
|
|
|
+ type: "string",
|
|
|
|
|
+ describe: "session id to continue",
|
|
|
}),
|
|
}),
|
|
|
handler: async (args) => {
|
|
handler: async (args) => {
|
|
|
if (args.dir) process.chdir(args.dir)
|
|
if (args.dir) process.chdir(args.dir)
|
|
|
await tui({
|
|
await tui({
|
|
|
url: args.url,
|
|
url: args.url,
|
|
|
- args: {},
|
|
|
|
|
|
|
+ args: { sessionID: args.session },
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|