Skip to content

Commit

Permalink
Handle bash expansions for the queries argument
Browse files Browse the repository at this point in the history
  • Loading branch information
shadaj committed Jun 28, 2018
1 parent 456a082 commit 94d114b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/apollo-cli/src/commands/codegen/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default class Generate extends Command {
{
title: "Scanning for GraphQL queries",
task: async (ctx, task) => {
const paths = await globby(flags.queries ? [ flags.queries ] : []);
const paths = await globby(flags.queries ? flags.queries.split('\n') : []);
task.title = `Scanning for GraphQL queries (${paths.length} found)`;
ctx.queryPaths = paths;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-cli/src/commands/schema/checkQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class CheckQueries extends Command {
{
title: "Scanning for GraphQL queries",
task: async (ctx, task) => {
const paths = await globby(flags.queries ? [ flags.queries ] : []);
const paths = await globby(flags.queries ? flags.queries.split('\n') : []);
task.title = `Scanning for GraphQL queries (${paths.length} found)`;
ctx.queryPaths = paths;
}
Expand Down

0 comments on commit 94d114b

Please sign in to comment.