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

app: Move terminal-related utility functions from common into app #5414

Merged
merged 2 commits into from Jul 3, 2023

Conversation

smcv
Copy link
Collaborator

@smcv smcv commented May 17, 2023

  • app: Move terminal-related utility functions from common into app

    These functions are to do with being an interactive, terminal-oriented
    CLI/TUI, so it would be inappropriate for library code in libflatpak
    to call them, and it would also be inappropriate for daemons like the
    session and system helpers to call them.

    In fact all calls to these were already isolated to app/, so we can
    easily move the terminal-related utilities themselves into app/.

    As well as shrinking libflatpak, this makes it obvious that the system
    helper does not actually need to call flatpak_disable_fancy_output():
    it does not link any code that would be affected by that API call.

  • tests: Move test coverage for app/ into a new executable

@smcv smcv marked this pull request as ready for review May 17, 2023 12:10
smcv added 2 commits July 3, 2023 20:08
These functions are to do with being an interactive, terminal-oriented
CLI/TUI, so it would be inappropriate for library code in libflatpak
to call them, and it would also be inappropriate for daemons like the
session and system helpers to call them.

In fact all calls to these were already isolated to app/, so we can
easily move the terminal-related utilities themselves into app/.

As well as shrinking libflatpak, this makes it obvious that the system
helper does not actually need to call flatpak_disable_fancy_output():
it does not link any code that would be affected by that API call.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Signed-off-by: Simon McVittie <smcv@collabora.com>
@alexlarsson alexlarsson merged commit ad17979 into main Jul 3, 2023
9 checks passed
@alexlarsson alexlarsson deleted the split-tty branch July 3, 2023 18:19
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.

None yet

2 participants