-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add profile option #38
base: master
Are you sure you want to change the base?
Conversation
Rebased |
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.
Does this work with multiple profiles?
@@ -195,7 +196,8 @@ func (ns *NodeSpec) Load() (IpfsNode, error) { | |||
switch ns.Type { | |||
case "local": | |||
ln := &LocalNode{ | |||
Dir: ns.Dir, | |||
Dir: ns.Dir, | |||
Profile: ns.Extra["profile"].(string), |
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.
Relying on this being set makes me a bit worried. Will this always be the case? We may want to default to "".
One can now pass arbitrary arguments to |
This allows initializing IPFS nodes with specified profiles.