-
-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18cb539
commit ebd0743
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from typing import NewType | ||
|
||
from bottles.backend.logger import Logger # pyright: reportMissingImports=false | ||
from bottles.backend.wine.wineprogram import WineProgram | ||
|
||
logging = Logger() | ||
|
||
|
||
class Expand(WineProgram): | ||
program = "Wine cabinet expander" | ||
command = "expand" | ||
|
||
def extract(self, cabinet: str, filename: str): | ||
args = f"{cabinet} {filename}" | ||
return self.launch(args=args, comunicate=True, action_name="extract") | ||
|
||
def extract_all(self, cabinet: str, filenames: list): | ||
for filename in filenames: | ||
self.extract(cabinet, filename) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters