FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

AC multi-operation change by bernstbj · Pull Request #88 · AppleCommander/AppleCommander · GitHub

AC multi-operation change - #88

Open
bernstbj wants to merge 3 commits into
AppleCommander:mainfrom
bernstbj:ac-multi-op-change
Open

AC multi-operation change#88
bernstbj wants to merge 3 commits into
AppleCommander:mainfrom
bernstbj:ac-multi-op-change

Conversation

Copy link
Copy Markdown

Changed command line parsing to allow for multiple operations in the same JVM instance. Multiple commands are specified sequentially (e.g. ac.sh -ptx volume.po afile afile.txt -bas volume.po bfile bfile.bas).

This required adding support for several operations to read files instead of STDIN. However, STDIN support remains for those who want to use it, though they need to specify '-' as the file. (e.g. ac.sh -ptx volume.po afile - <afile.txt)

The point of doing this was that I have a .po that I am writing 1000 files to. Doing this file-by-file with the existing ac.sh mechanism takes nearly 6 minutes because of the constant bring-up/tear-down of a JVM. With this change, the same task can be done in under 20 seconds.

same JVM instance. Multiple commands are specified sequentially (e.g.
ac.sh -ptx volume.po afile afile.txt -bas volume.po bfile bfile.bas).
This required adding support for several operations to read files
instead of STDIN. However, STDIN support remains for those who want to
use it, though they need to specify '-' as the file.

Copy link
Copy Markdown
Contributor

This is a breaking change to command-line interface. It breaks all existing documentations/ instructions/ tutorials.

How about the other way round? Default to stdin and enable file input by a switch.

This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL