mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-06 08:46:21 +01:00
Updated for flags
This commit is contained in:
parent
deeaae364c
commit
b563a6908b
1 changed files with 3 additions and 3 deletions
|
@ -9,8 +9,8 @@ from pathlib import Path
|
||||||
|
|
||||||
class NewConfig:
|
class NewConfig:
|
||||||
|
|
||||||
def __init__(self, options: list):
|
def __init__(self, flags: list):
|
||||||
self.options: list = options
|
self.flags: list = flags
|
||||||
self.etc_path: str = '/etc/slpkg'
|
self.etc_path: str = '/etc/slpkg'
|
||||||
self.slpkg_config = Path(self.etc_path, 'slpkg.toml')
|
self.slpkg_config = Path(self.etc_path, 'slpkg.toml')
|
||||||
self.blacklist_config = Path(self.etc_path, 'blacklist.toml')
|
self.blacklist_config = Path(self.etc_path, 'blacklist.toml')
|
||||||
|
@ -30,7 +30,7 @@ class NewConfig:
|
||||||
self.choice = None
|
self.choice = None
|
||||||
|
|
||||||
def colors(self):
|
def colors(self):
|
||||||
if '--no-colors' in self.options:
|
if '--no-colors' in self.flags:
|
||||||
self.color = {
|
self.color = {
|
||||||
'bold': '',
|
'bold': '',
|
||||||
'red': '',
|
'red': '',
|
||||||
|
|
Loading…
Add table
Reference in a new issue