quarkusio/quarkus

fix and document console-aliases.txt

Open

#33,528 创建于 2023年5月22日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)Java (12,967 star) (2,464 fork)batch import
area/devmodegood first issuekind/bug

描述

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

贡献者指南