Repository: oclif/core
Pull request #827 (2023-10-13 20:05:47)

fix: add frequency and frequencyUnit to warn-if-update
Add `frequency` and `frequencyUnit` to `warn-if-update-available` configuration. 


Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9e635e0..8f26dde 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+# [3.3.0](https://github.com/oclif/core/compare/3.2.1...3.3.0) (2023-10-16)
+
+
+
 ## [3.2.1](https://github.com/oclif/core/compare/3.2.0...3.2.1) (2023-10-13)
 
 
diff --git a/package.json b/package.json
index addb2ba..0cc1b31 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@oclif/core",
   "description": "base library for oclif CLIs",
-  "version": "3.2.1",
+  "version": "3.3.0",
   "author": "Salesforce",
   "bugs": "https://github.com/oclif/core/issues",
   "dependencies": {
diff --git a/src/interfaces/pjson.ts b/src/interfaces/pjson.ts
index 976c5bf..26c9036 100644
--- a/src/interfaces/pjson.ts
+++ b/src/interfaces/pjson.ts
@@ -104,6 +104,8 @@ export namespace PJSON {
         message: string
         registry: string
         timeoutInDays: number
+        frequency: number
+        frequencyUnit: 'days' | 'hours' | 'minutes' | 'seconds' | 'milliseconds'
       }
     }
   }
diff --git a/src/util/cache-command.ts b/src/util/cache-command.ts
index fb5214b..9e6c4f7 100644
--- a/src/util/cache-command.ts
+++ b/src/util/cache-command.ts
@@ -29,6 +29,7 @@ async function cacheFlags(
       deprecateAliases: flag.deprecateAliases,
       deprecated: flag.deprecated,
       description: flag.description,
+      env: flag.env,
       exclusive: flag.exclusive,
       helpGroup: flag.helpGroup,
       helpLabel: flag.helpLabel,


Test patch:
diff --git a/test/util/cache-command.test.ts b/test/util/cache-command.test.ts
index 7b7e124..787d3fc 100644
--- a/test/util/cache-command.test.ts
+++ b/test/util/cache-command.test.ts
@@ -32,6 +32,7 @@ describe('cacheCommand', () => {
           char: 'c',
           min: 1,
           max: 10,
+          env: 'FLAGC',
           required: false,
           description: 'flagc desc',
           options: ['a', 'b'],
@@ -78,6 +79,7 @@ describe('cacheCommand', () => {
           dependsOn: undefined,
           deprecateAliases: undefined,
           deprecated: undefined,
+          env: undefined,
           exclusive: undefined,
           helpGroup: undefined,
           helpLabel: undefined,
@@ -98,6 +100,7 @@ describe('cacheCommand', () => {
           dependsOn: undefined,
           deprecateAliases: undefined,
           deprecated: undefined,
+          env: undefined,
           exclusive: undefined,
           helpGroup: undefined,
           helpLabel: undefined,
@@ -125,6 +128,7 @@ describe('cacheCommand', () => {
           deprecateAliases: undefined,
           deprecated: undefined,
           description: 'flagc desc',
+          env: 'FLAGC',
           exclusive: undefined,
           helpGroup: undefined,
           helpLabel: undefined,
@@ -205,6 +209,7 @@ describe('cacheCommand', () => {
           char: undefined,
           summary: undefined,
           description: 'Format output as json.',
+          env: undefined,
           hidden: undefined,
           required: undefined,
           helpLabel: undefined,
@@ -225,6 +230,7 @@ describe('cacheCommand', () => {
           char: undefined,
           summary: undefined,
           description: undefined,
+          env: undefined,
           hidden: undefined,
           required: undefined,
           helpLabel: undefined,
@@ -245,6 +251,7 @@ describe('cacheCommand', () => {
           char: undefined,
           summary: undefined,
           description: undefined,
+          env: undefined,
           hidden: undefined,
           required: undefined,
           helpLabel: undefined,