Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add profile option #38

wants to merge 2 commits into from

Conversation

magik6k
Copy link
Member

@magik6k magik6k commented Jan 16, 2018

This allows initializing IPFS nodes with specified profiles.

@magik6k
Copy link
Member Author

magik6k commented Jan 22, 2018

Rebased

Copy link
Member

@Stebalien Stebalien left a 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),
Copy link
Member

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 "".

@Stebalien
Copy link
Member

One can now pass arbitrary arguments to iptb init.

@Stebalien Stebalien closed this Dec 16, 2018
@Stebalien Stebalien reopened this Dec 16, 2018
@ghost ghost assigned Stebalien Dec 16, 2018
@ghost ghost added the status/in-progress In progress label Dec 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants