forked from Mirror/pmbootstrap
core: move args.log to context.log (MR 2252)
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
838beb270d
commit
02f04ba3a8
6 changed files with 28 additions and 15 deletions
|
@ -3,13 +3,20 @@
|
|||
|
||||
"""Global runtime context"""
|
||||
|
||||
import pmb.config
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
class Context():
|
||||
details_to_stdout: bool
|
||||
quiet: bool
|
||||
command_timeout: float
|
||||
sudo_timer: bool
|
||||
log: Path
|
||||
|
||||
def __init__(self):
|
||||
self.details_to_stdout = False
|
||||
self.command_timeout = 0
|
||||
self.sudo_timer = False
|
||||
self.log = pmb.config.work / "log.txt"
|
||||
self.quiet = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue