@oclif/core 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -68,7 +68,11 @@ async function cacheArgs(cmdArgs, respectNoCacheDefault) {
|
|
|
68
68
|
}
|
|
69
69
|
async function cacheCommand(uncachedCmd, plugin, respectNoCacheDefault = false) {
|
|
70
70
|
const cmd = mergePrototype(uncachedCmd, uncachedCmd);
|
|
71
|
-
|
|
71
|
+
// @ts-expect-error because v2 commands have flags stored in _flags
|
|
72
|
+
const uncachedFlags = cmd.flags ?? cmd._flags;
|
|
73
|
+
// @ts-expect-error because v2 commands have base flags stored in _baseFlags
|
|
74
|
+
const uncachedBaseFlags = cmd.baseFlags ?? cmd._baseFlags;
|
|
75
|
+
const flags = await cacheFlags((0, aggregate_flags_1.aggregateFlags)(uncachedFlags, uncachedBaseFlags, cmd.enableJsonFlag), respectNoCacheDefault);
|
|
72
76
|
const args = await cacheArgs((0, ensure_arg_object_1.ensureArgObject)(cmd.args), respectNoCacheDefault);
|
|
73
77
|
const stdProperties = {
|
|
74
78
|
aliases: cmd.aliases || [],
|