File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ async function updateCgFormula(brewDir) {
150150 const url = `${ CLI_ASSETS_URL } /cg-v${ SHORT_VERSION } /${ zipFile } `
151151
152152 const templateReplaced = template
153+ . replace ( '__VERSION__' , SHORT_VERSION )
153154 . replace ( '__CLI_DOWNLOAD_URL__' , url )
154155 . replace ( '__TARBALL_HASH__' , sha256 )
155156 . replace ( '__NODE_VERSION__' , NODE_VERSION )
Original file line number Diff line number Diff line change 55class Cg < Formula
66 desc "Query your cloud and SaaS data with GraphQL"
77 homepage "https://cloudgraph.dev"
8+ version "__VERSION__"
89 url "__CLI_DOWNLOAD_URL__"
910 sha256 "__TARBALL_HASH__"
1011
Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ export default abstract class BaseCommand extends Command {
9494 ) } is available: ${ this . config . version } -> ${ cliLatestVersion } . \n
9595you can update based on how you installed CG \n
9696NPM: ${ 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' ) } ` )
9899 }
99100 const configDir = this . getCGConfigKey ( 'directory' ) ?? 'cg'
100101 this . versionDirectory = directory ?? configDir
You can’t perform that action at this time.
0 commit comments