-
Notifications
You must be signed in to change notification settings - Fork 201
Extend link CLI command to support multiple dependencies #50
Conversation
- using link command - using init command specifying the --link option
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.
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(',') : [] |
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 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'; |
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.
I would stick to just link
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.
Agree. Let's leave this up until we do the stdlib naming refactor.
* Implement linking multiple dependencies - using link command - using init command specifying the --link option * Fix in conditional
* Implement linking multiple dependencies - using link command - using init command specifying the --link option * Fix in conditional
Example usage:
or