Skip to content

Draft CLI test#5550

Draft
buchen wants to merge 1 commit intoportfolio-performance:masterfrom
buchen:feature/cli
Draft

Draft CLI test#5550
buchen wants to merge 1 commit intoportfolio-performance:masterfrom
buchen:feature/cli

Conversation

@buchen
Copy link
Member

@buchen buchen commented Mar 4, 2026

For experimenting. I haven't looked at the code in detail. It is using the existing JSON and CSV formats.

./PortfolioPerformance.app/Contents/MacOS/PortfolioPerformance \
    -nosplash \
    -application name.abuchen.portfolio.cli.app \
    --file ~/Downloads/kommer.xml \
    --export transactions \
    --format json

Not sure if one can reduce the command line (splash, application). There are also log entries I cannot suppress (or do not know how to suppress yet).

@georgemac-labs
Copy link
Contributor

georgemac-labs commented Mar 4, 2026

@buchen LGTM!

Codex claims there is no straightforward way to detect CLI vs GUI invocation, nor to get rid of the SPI Fly INFO logging. It only has a good solution for the incubator modules line...

  1. To remove incubator warning

    • In name.abuchen.portfolio.product:10 and name.abuchen.portfolio.distro.product:11, replace:
      • --add-modules=ALL-SYSTEM
      • with --add-modules=java.se (or remove entirely if not needed).
    • Result: removes Using incubator modules: jdk.incubator.vector
  2. Add a dedicated pp-cli launcher script

    • Script always adds:
      • -application name.abuchen.portfolio.cli.app
      • -nosplash
      • -Djava.util.logging.config.file=
    • Result: short syntax for users and no SPI Fly INFO noise.
  3. Optional later (more invasive): true auto-detect UI vs CLI by args

    • Implement a router application and make it the default application=....

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