Create console command extension point
Bug #837869 reported by
Adam Connelly
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
DB Version | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
High
|
Adam Connelly |
Bug Description
Create an interface that can be imported into the console application to allow the commands that are supported to be extended. When the application runs, it would then identify the command that was specified and pass the command line arguments to the command. The command line could then take the format:
dbversion command [options]
For example:
dbversion help
dbversion create -amyArchive.zip
Related branches
tags: | added: dbversion-console |
To post a comment you must log in.
I've added in support for extending the console with commands.
There's now a CommandManager that chooses the correct command to use based on the arguments passed to the application. To create a new command, you just have to export a class that implements IConsoleCommand. There's currently a CreateCommand that lets you create or update a database.