Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ deno task prep:iroha --path /path/to/local/iroha/clone

```sh
# clone the repo
deno task prep:iroha --git https://github.com/hyperledger-iroha/iroha.git --rev v2.0.0-rc.1.0
deno task prep:iroha --git https://github.com/hyperledger-iroha/iroha.git --git-rev v2.0.0-rc.1.0
```

After Iroha is linked, you need to prepare some artifacts from it (binaries such as `irohad`, `kagami`, `iroha_codec`;
Expand Down
23 changes: 22 additions & 1 deletion etc/task-prep-iroha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,27 @@ await match(args)
await copyArtifacts()
})
.otherwise(() => {
$.logError('Bad CLI args')
const cmd = colors.gray(`deno task prep:iroha`)

console.info(`Usage:

${colors.blue('## Link Iroha')}

${colors.magenta(`${cmd} --git <git repo> --git-rev <tag or revision>`)}
to clone Iroha repo

or

${colors.magenta(`${cmd} --path <local path>`)}
to symlink a local Iroha repo

${colors.blue('## Build')}

${colors.magenta(`${cmd} --build`)}
to build Iroha artifacts

${colors.magenta(`${cmd} --check`)}
to check that the artifacts are ready
`)
Deno.exit(1)
})