mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-08 15:51:06 +00:00
Plugins: allow unsafe-force override on update
This commit is contained in:
committed by
Peter Steinberger
parent
824ff335c6
commit
c4f40c3f7d
@@ -53,6 +53,7 @@ export type PluginInspectOptions = {
|
||||
export type PluginUpdateOptions = {
|
||||
all?: boolean;
|
||||
dryRun?: boolean;
|
||||
dangerouslyForceUnsafeInstall?: boolean;
|
||||
};
|
||||
|
||||
export type PluginMarketplaceListOptions = {
|
||||
@@ -799,6 +800,11 @@ export function registerPluginsCli(program: Command) {
|
||||
.argument("[id]", "Plugin or hook-pack id (omit with --all)")
|
||||
.option("--all", "Update all tracked plugins and hook packs", false)
|
||||
.option("--dry-run", "Show what would change without writing", false)
|
||||
.option(
|
||||
"--dangerously-force-unsafe-install",
|
||||
"Bypass built-in dangerous-code update blocking for plugins (plugin hooks may still block)",
|
||||
false,
|
||||
)
|
||||
.action(async (id: string | undefined, opts: PluginUpdateOptions) => {
|
||||
await runPluginUpdateCommand({ id, opts });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user