Skip to content

Commit

Permalink
major: Upgrade to Node 18 & @oclif/core v3
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandagg committed Oct 13, 2023
1 parent 42572ca commit d0b73fc
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 180 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 18.16.1
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bugs": "https://github.com/heroku/heroku-cli-command/issues",
"dependencies": {
"@heroku-cli/color": "^1.1.14",
"@oclif/core": "^2.8.11",
"@oclif/core": "^3.0.6",
"cli-ux": "^6.0.9",
"debug": "^4.1.1",
"fs-extra": "^7.0.1",
Expand All @@ -33,15 +33,15 @@
"chai": "^4.2.0",
"fancy-test": "^1.4.3",
"mocha": "^6.1.4",
"nock": "^10.0.6",
"nock": "^11.9.1",
"proxyquire": "^2.1.0",
"sinon": "^9.0.3",
"ts-node": "^8.1.0",
"tslint": "^6.1.3",
"typescript": "^4.8.4"
},
"engines": {
"node": ">=14.0.0"
"node": ">=18.0.0"
},
"files": [
"lib"
Expand Down
15 changes: 14 additions & 1 deletion src/completions.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
import {Interfaces} from '@oclif/core'
import {CLIError} from '@oclif/core/lib/errors'
import {Completion} from '@oclif/core/lib/interfaces/parser'
import * as path from 'path'

import deps from './deps'
import {configRemote, getGitRemotes} from './git'

export type CompletionContext = {
args?: { [name: string]: string };
flags?: { [name: string]: string };
argv?: string[];
config: Interfaces.Config;
}

export type Completion = {
skipCache?: boolean;
cacheDuration?: number;
cacheKey?(ctx: CompletionContext): Promise<string>;
options(ctx: CompletionContext): Promise<string[]>;
}

export const oneDay = 60 * 60 * 24

export const herokuGet = async (resource: string, ctx: {config: Interfaces.Config}): Promise<string[]> => {
Expand Down
Loading

0 comments on commit d0b73fc

Please sign in to comment.