File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ async function updateCgFormula(brewDir) {
150
150
const url = `${ CLI_ASSETS_URL } /cg-v${ SHORT_VERSION } /${ zipFile } `
151
151
152
152
const templateReplaced = template
153
+ . replace ( '__VERSION__' , SHORT_VERSION )
153
154
. replace ( '__CLI_DOWNLOAD_URL__' , url )
154
155
. replace ( '__TARBALL_HASH__' , sha256 )
155
156
. replace ( '__NODE_VERSION__' , NODE_VERSION )
Original file line number Diff line number Diff line change 5
5
class Cg < Formula
6
6
desc "Query your cloud and SaaS data with GraphQL"
7
7
homepage "https://cloudgraph.dev"
8
+ version "__VERSION__"
8
9
url "__CLI_DOWNLOAD_URL__"
9
10
sha256 "__TARBALL_HASH__"
10
11
Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ export default abstract class BaseCommand extends Command {
94
94
) } is available: ${ this . config . version } -> ${ cliLatestVersion } . \n
95
95
you can update based on how you installed CG \n
96
96
NPM: ${ chalk . italic . green ( 'npm i -g @cloudgraph/cli' ) } \n
97
- homebrew: ${ chalk . italic . green ( 'brew upgrade cloudgraphdev/tap/cg' ) } ` )
97
+ homebrew: 1. ${ chalk . italic . green ( 'brew update' ) } \n
98
+ 2. ${ chalk . italic . green ( 'brew upgrade cloudgraphdev/tap/cg' ) } ` )
98
99
}
99
100
const configDir = this . getCGConfigKey ( 'directory' ) ?? 'cg'
100
101
this . versionDirectory = directory ?? configDir
You can’t perform that action at this time.
0 commit comments