feat: Add path property to command struct
- Include 'path' field in Command interface for directory awareness - Add 'path' to command object creation for devchat run listing - Update CommandEntry interface in devchat tool wrapper to hold 'path'
This commit is contained in:
parent
2ff769b79f
commit
7f8694ff26
@ -9,6 +9,7 @@ export interface Command {
|
||||
name: string;
|
||||
pattern: string;
|
||||
description: string;
|
||||
path: string;
|
||||
args: number;
|
||||
handler: (commandName: string, userInput: string) => Promise<string>;
|
||||
}
|
||||
@ -24,6 +25,7 @@ async function getCommandListByDevChatRun(includeHide: boolean = false): Promise
|
||||
name: command.name,
|
||||
pattern: command.name,
|
||||
description: command.description,
|
||||
path: command.path,
|
||||
args: 0,
|
||||
handler: async (commandName: string, userInput: string) => { return ''; }
|
||||
};
|
||||
|
@ -41,6 +41,7 @@ export interface LogEntry {
|
||||
export interface CommandEntry {
|
||||
name: string;
|
||||
description: string;
|
||||
path: string;
|
||||
}
|
||||
|
||||
export interface TopicEntry {
|
||||
|
Loading…
x
Reference in New Issue
Block a user