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

cmds/env: add a config path helper #5712

Merged
merged 1 commit into from
Nov 2, 2018

Conversation

overbool
Copy link
Contributor

@overbool overbool commented Nov 1, 2018

License: MIT
Signed-off-by: Overbool [email protected]

@@ -40,3 +40,13 @@ func GetConfig(env cmds.Environment) (*config.Config, error) {

return ctx.GetConfig()
}

// GetConfigPath extracts the config path from the environment
func GetConfigPath(env cmds.Environment) (string, error) {
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 name this GetConfigRoot, to be consistent with the variable it is accessing. I agree it not the best name, but I think it better to be consistent here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kevina Changed it.

@overbool overbool force-pushed the feat/cmds/add-config-helper branch from 92a06e5 to 33019df Compare November 2, 2018 02:09
License: MIT
Signed-off-by: Overbool <[email protected]>
@overbool overbool force-pushed the feat/cmds/add-config-helper branch from 33019df to bf15999 Compare November 2, 2018 02:10
@kevina kevina added the RFM label Nov 2, 2018
@Stebalien Stebalien merged commit 8736202 into ipfs:master Nov 2, 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.

3 participants