-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
- Loading branch information
1 parent
f98e599
commit 5258f2d
Showing
3 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
:: Confirms that the batch file works correctly in Windows Terminal / Command Prompt. | ||
:: This batch file is used to visually test to see if `shell-history` works, rather | ||
:: than to act as a real, responsive "test case" (as such, `ava` is not used here). | ||
|
||
@echo off | ||
|
||
echo Print entire history | ||
node --print "const history = require('.'); history()" | ||
pause | ||
echo. | ||
echo Print last command (which will be "test_win.bat") | ||
node --print "const history = require('.'); let h = history(); h[h.length - 1]" | ||
pause |