Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

otk/ui: introduce some sort of ui #272

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Commits on Nov 11, 2024

  1. otk/ui: create an ui submodule

    We want prettier outputs, let's create an ui submodule to hold
    primitives for that. This includes the initial implementation of a
    spinner (which just prints dots for now).
    
    Signed-off-by: Simon de Vlieger <[email protected]>
    supakeen committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    a2373f6 View commit details
    Browse the repository at this point in the history
  2. otk/ui: introduce spinner for externals

    Shows a message with dots appearing after it when an external is
    running.
    
    Signed-off-by: Simon de Vlieger <[email protected]>
    supakeen committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    7195a9f View commit details
    Browse the repository at this point in the history
  3. otk: reduce log level for includes

    The log level for includes can be reduced from INFO to DEBUG to be
    consistent with out log levels.
    
    Signed-off-by: Simon de Vlieger <[email protected]>
    supakeen committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    f1ac485 View commit details
    Browse the repository at this point in the history
  4. otk/ui: provide and use a print function

    Only prints output when stderr is a tty.
    
    Signed-off-by: Simon de Vlieger <[email protected]>
    supakeen committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    ef02fc2 View commit details
    Browse the repository at this point in the history
  5. otk/ui: introduce MOTD

    Small MOTD to print version and documentation URL.
    
    Signed-off-by: Simon de Vlieger <[email protected]>
    supakeen committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    de68ce3 View commit details
    Browse the repository at this point in the history
  6. ui: wrap logger instance

    Use a logger instance as the default output for the UI. The logger
    instance is still configured by the entrypoint for its levels.
    
    The new `Terminal` instance delegates all `Logger` calls but adds a few
    others such as a `spinner` and `motd`.
    
    Signed-off-by: Simon de Vlieger <[email protected]>
    supakeen committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    fca152b View commit details
    Browse the repository at this point in the history
  7. chore: unused assignment

    Signed-off-by: Simon de Vlieger <[email protected]>
    supakeen committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    ea5d39a View commit details
    Browse the repository at this point in the history
  8. bug: fix merge thing

    Probably rebased wrongly?
    
    Signed-off-by: Simon de Vlieger <[email protected]>
    supakeen committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    ed86a26 View commit details
    Browse the repository at this point in the history