We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d41bc5 commit f27d20eCopy full SHA for f27d20e
src/commands/showfile.ts
@@ -43,6 +43,7 @@ export default class ShowFile extends Command {
43
private showFile(args: any) {
44
45
let data = Utilities.getStringFromFile(this, args.file)
46
+
47
let rows = data.split('\n')
48
49
let widthArray = []
@@ -53,6 +54,10 @@ export default class ShowFile extends Command {
53
54
widthArray[i] = 0
55
}
56
57
+ if(recordsToShow > rows.length){
58
+ recordsToShow = rows.length
59
+ }
60
61
for(let i = 0; i < recordsToShow; i++){
62
let row = rows[i].split(",");
63
let s = ''
0 commit comments