feat(cli): add inkreach-teable plugin commands
plugin list: list registered plugins (id/name/status/runtimeType) plugin register: register by URL (--name --url --positions) plugin config list: list base configs (pluginId/tableId/enabled/form/write) plugin config enable/disable: enable/disable per table or base-wide Added 5 client methods: getPlugins, registerPlugin, listPluginConfigs, upsertPluginConfig for CRUD.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
import { Command } from 'commander';
|
||||
import { version } from '../package.json';
|
||||
import { pluginCommand } from './commands/plugin';
|
||||
import { authCommand } from './commands/auth';
|
||||
import { workflowCommand, triggerCommand, actionCommand } from './commands/workflow';
|
||||
import { baseResourceCommands } from './commands/resources';
|
||||
@@ -31,6 +32,7 @@ program
|
||||
|
||||
// Command groups
|
||||
program.addCommand(authCommand());
|
||||
program.addCommand(pluginCommand());
|
||||
for (const c of baseResourceCommands()) program.addCommand(c);
|
||||
program.addCommand(workflowCommand());
|
||||
program.addCommand(triggerCommand());
|
||||
|
||||
Reference in New Issue
Block a user