quarkusio/quarkus

fix and document console-aliases.txt

Open

#33528 opened on May 22, 2023

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Java (12,967 stars) (2,464 forks)batch import
area/devmodegood first issuekind/bug

Description

Describe the bug

console-aliases.txt is in the code and used in #23497 PR but I found a few issues:

  1. console-aliases.txt is not documented anywhere. we should fix that :)
  2. the file gets rewritten somehow automatically meaning if you have two quarkus dev running things goes bad. (lines deleted)
  3. spaces are inconsistently handled. you must quote spaces, so alias ll=config set quarkus.log.console.format="max\ %d{HH:mm:ss,SSS}\ %-5p\ [%c{3.}]\ (%t)\ %s%e%n" works but when I add it I end up with rewritten file:
alias ll=config set quarkus.log.console.format="max\ %d{HH:mm:ss,SSS}\ %-5p\ [%c{3.}]\ (%t)\ %s%e%n"
quarkus.log.console.format=max\ %d{HH:mm:ss,SSS}\ %-5p\ [%c{3.}]\ (%t)\ %s%e%n
  1. lines without alias is ignored, nothing printed to console that file is problematic
  2. the file is created even if alias list is empty
  3. alias --help gives no info.
  4. alias not listed in help
  5. finally - local project aliases would be nice...i.e. not all aliases makes sense for everyone.

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Contributor guide