Skip to content

Commit

Permalink
Note about future autopaging for format command
Browse files Browse the repository at this point in the history
  • Loading branch information
misterfifths committed Jan 9, 2012
1 parent f758c6f commit 4857a71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jutil.js
Expand Up @@ -542,6 +542,8 @@ function formatCommandHandler(runtimeSettings, config, opts)
if(!Array.isArray(data))
data = [data];

// TODO: might be nice to provide autopaging here, like for the commands
// that output JSON.
for(i = 0; i < data.length; i++) {
replacer = replacerFactory(data, i);
process.stdout.write(format.replace(re, replacer) + '\n');
Expand Down

0 comments on commit 4857a71

Please sign in to comment.