Skip to content

Commit

Permalink
Remove unused defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
pschoffer committed Oct 28, 2021
1 parent 3b467d3 commit 6fb18bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
9 changes: 0 additions & 9 deletions src/lib/constants/dev-environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ export const DEV_ENVIRONMENT_DEFAULTS = {
multisite: false,
elasticsearchVersion: '7.10.1',
mariadbVersion: '10.3',
wordpress: {
mode: 'image',
},
muPlugins: {
mode: 'image',
},
clientCode: {
mode: 'image',
},
};

export const DEV_ENVIRONMENT_PROMPT_INTRO = 'This is a wizard to help you set up your local dev environment.\n\n' +
Expand Down
3 changes: 2 additions & 1 deletion src/lib/dev-environment/dev-environment-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async function processComponent( component: string, option: string ) {
} else {
const message = `Provided path "${ resolvedPath }" does not point to a valid or existing directory.`;
console.log( chalk.yellow( 'Warning:' ), message );
result = await promptForComponent( component );
result = await promptForComponent( component, allowLocal );
}
}

Expand Down Expand Up @@ -239,6 +239,7 @@ const componentDisplayNames = {
};

export async function promptForComponent( component: string, allowLocal: boolean ): Promise<ComponentConfig> {
debug( `Prompting for ${ component }` );
const componentDisplayName = componentDisplayNames[ component ] || component;
const choices = [];

Expand Down

0 comments on commit 6fb18bc

Please sign in to comment.