-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
edits to change SnarkyJS latest install suggestion and other CLI prompt fixes #437
Conversation
@@ -48,9 +48,9 @@ async function deploy({ alias, yes }) { | |||
config.deployAliases = config?.networks; | |||
|
|||
if (hasBreakingChanges(installedCliVersion, latestCliVersion)) { | |||
log(red(`You are using an old zkapp-cli version ${installedCliVersion}.`)); | |||
log(red(`You are using an earlier zkapp-cli version ${installedCliVersion}.`)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
general advice in language is to use earlier instead of older
https://github.com/o1-labs/docs2/wiki/Word-list#earlier
and
(not sure we need to provide a version number since we detect the earlier version)
@@ -70,7 +70,7 @@ async function deploy({ alias, yes }) { | |||
// Makes the step text green upon success, else uses reset. | |||
const style = | |||
state.submitted && !state.cancelled ? state.styles.success : reset; | |||
return style('Which deploy alias would you like to deploy to?'); | |||
return style('Which deploy alias do you want to deploy to?'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"like" and "desire" are emotive, let's use imperative language for the prompts
@@ -137,7 +137,7 @@ async function deploy({ alias, yes }) { | |||
return { smartContracts }; | |||
}); | |||
|
|||
// Identify which smart contract should be deployed for this deploy alias. | |||
// Identify which smart contract to be deployed for this deploy alias. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we all want to use "should" but in technical situations, we want to avoid
see https://developers.google.com/style/word-list#letter-s
@@ -216,7 +216,7 @@ function kebabCase(str) { | |||
|
|||
/** | |||
* Fetch an example & place in the `src` directory. | |||
* @param {string} example Name of the example, as found in our Github repo. | |||
* @param {string} example Name of the example, as found in our GitHub repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep! we misspell GitHub in many places in our docs and code (oof)
This PR includes:
npm install snarkyjs@latest