Skip to content

Commit

Permalink
feat: support for packages key for packages screen (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoceppi authored Aug 7, 2023
1 parent 9fd3d79 commit 381f73e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
15 changes: 9 additions & 6 deletions tests/example-multi-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ screens:
actions:
- run: flatpak remote-delete fedora --force
- run: flatpak remove --system --noninteractive --all
applications-three:
source: yafti.screen.package
values:
title: Install more flatpaks
show_terminal: true
package_manager: yafti.plugin.flatpak
packages:
- Steam: com.valvesoftware.Steam
- Games: org.gnome.Games
applications:
source: yafti.screen.package
values:
Expand All @@ -41,12 +50,6 @@ screens:
packages:
- Calculator: org.gnome.Calculator
- Firefox: org.mozilla.firefox
Gaming:
description: GAMES GAMES GAMES
default: false
packages:
- Steam: com.valvesoftware.Steam
- Games: org.gnome.Games
applications-two:
source: yafti.screen.package
values:
Expand Down
3 changes: 2 additions & 1 deletion yafti/screen/package/screen/picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def __init__(

def draw(self):
if isinstance(self.packages, list):
# TODO: Implement a list of packages and not package groups
for item in self._build_apps(self.packages):
self.package_list.add(item)
return

for name, details in self.packages.items():
Expand Down

0 comments on commit 381f73e

Please sign in to comment.