Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Extend link CLI command to support multiple dependencies #50

Merged
merged 2 commits into from
Aug 28, 2018

Conversation

jbcarpanelli
Copy link
Contributor

Example usage:

foo@bar:~$ zos link openzeppelin-zos gnosis-safe

or

foo@bar:~$ zos init MyUpgradeableProjectWithDependencies 0.0.1 --link openzeppelin-zos,gnosis-safe

- using link command
- using init command specifying the --link option
Copy link
Contributor

@facuspagnuolo facuspagnuolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Left some small comments and I still have the same doubt I asked in the other PR regarding stdlib, library and deps terminologies

await initLib({ name, version, force })
} else {
const { link: libNameVersion, install: installLib } = options
await init({ name, version, libNameVersion, installLib, force })
const libs = link ? link.split(',') : []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could use utils/input#parseArgs I think

@@ -7,7 +7,7 @@ import { Contracts, Logger } from 'zos-lib';
import add from '../../src/scripts/add.js';
import push from '../../src/scripts/push.js';
import createProxy from '../../src/scripts/create.js';
import linkLib from '../../src/scripts/link.js';
import linkLibs from '../../src/scripts/link.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would stick to just link

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. Let's leave this up until we do the stdlib naming refactor.

@jbcarpanelli jbcarpanelli merged commit 98072ef into next Aug 28, 2018
@jbcarpanelli jbcarpanelli deleted the feature/link-multiple-libs branch August 28, 2018 21:00
spalladino pushed a commit that referenced this pull request Sep 24, 2018
* Implement linking multiple dependencies
- using link command
- using init command specifying the --link option

* Fix in conditional
spalladino pushed a commit that referenced this pull request Sep 24, 2018
* Implement linking multiple dependencies
- using link command
- using init command specifying the --link option

* Fix in conditional
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants