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

Added init-opts #6

Merged
merged 1 commit into from
Oct 3, 2018
Merged

Conversation

AntonBazhal
Copy link
Contributor

No description provided.

@@ -1,6 +1,7 @@
'use strict';

const getCwd = require('./get-cwd');
const runInterpolation = require('./run-interpolation');
Copy link
Owner

Choose a reason for hiding this comment

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

nit: run to me means a command, whereas I would just call this interpolate()

lib/get-cwd.js Outdated
}
} while (match);

const value = runInterpolation('path', options, { dir });
Copy link
Owner

Choose a reason for hiding this comment

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

I would prefer, I think, just`

interpolate(options.path, ...)
interpolate(options['init-opts'], ...)

so signature is (value, option, defaults) rather than property name as path

@AntonBazhal AntonBazhal changed the title [WIP] Added init-opts Added init-opts Oct 3, 2018
@dougmoscrop dougmoscrop merged commit 92b8578 into dougmoscrop:master Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants