-
Notifications
You must be signed in to change notification settings - Fork 175
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
Feat arg project init #868
Feat arg project init #868
Conversation
} | ||
|
||
} else { | ||
answers = await inquirer.prompt(questionsInitProject) |
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.
Hmm. What if we did different approach?
We start with empty "answers" object.. We try to fill ith with params from CMD, only using what is provided. We then take questionsInitProject
and filter out questions that we already have answer for. Then, we show remaining questions and fill them into our answers object. If all answers were already given with params, there is no need to ask questions all-together
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.
Addressed
feat: Added list search
refactor: Improve command line to use `rawArgs`
Feat collection push improvements
…feat-general-improvements
templates/cli/lib/utils.js.twig
Outdated
if (open) { | ||
const start = (process.platform == 'darwin' ? 'open' : process.platform == 'win32' ? 'start' : 'xdg-open'); | ||
cp.exec(`${start} ${url}`); | ||
|
||
cp.exec(`${start} ${url}`, (err, stdout, stderr) => { | ||
if (err !== null) { | ||
console.log('\n'); | ||
error('Opening in default browser. ' + err) | ||
} | ||
}); |
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.
Do we need this --open option? I think it might cause more problems than we are trying to solve. Does xdg-open
work on all linux distros?
I think we can save this trouble altogether by removing the open
param. We can just display the link with the --console flag and people can just click it.
Feat function init improvments
fcb2ddc
into
feat-multiple-accounts-and-instances
What does this PR do?
Allowing project creation using a single command
Test Plan