Skip to content

Commit

Permalink
Remove print feature and some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniosarosi committed Jan 19, 2021
1 parent ecf0cec commit 62fec96
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 56 deletions.
2 changes: 1 addition & 1 deletion pycritty/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Automated tools for managing alacritty configurations"""

__version__ = "0.3.0"
__version__ = "0.3.1"


class PycrittyError(Exception):
Expand Down
1 change: 0 additions & 1 deletion pycritty/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from .pycritty import parser, subparsers
from .set import set_parser
from .print import print_parser
from .list import list_parser
from .save import save_parser
from .load import load_parser
Expand Down
17 changes: 0 additions & 17 deletions pycritty/cli/print.py

This file was deleted.

2 changes: 0 additions & 2 deletions pycritty/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
from .set import SetConfig
from .print import Printer
from .list import ListResource
from .save import SaveConfig
from .load import LoadConfig
from .install import Install

subcommands = {
'set': SetConfig,
'print': Printer,
'list': ListResource,
'save': SaveConfig,
'load': LoadConfig,
Expand Down
31 changes: 0 additions & 31 deletions pycritty/commands/print.py

This file was deleted.

3 changes: 0 additions & 3 deletions pycritty/commands/set.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ def __init__(self):
def apply(self):
yio.write_yaml(self.config, resources.config_file)

def execute(self, actions: Dict[str, Any]):
super().execute(actions)

def set(self, **kwargs):
"""Set multiple changes at once
Expand Down
2 changes: 1 addition & 1 deletion pycritty/io/yio.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def read_yaml(url: Union[str, Path, Resource]) -> Dict[str, Any]:
has_protocol = urlparse(url).scheme != ''
if isinstance(url, Resource):
url = url.path
if not has_protocol or isinstance(url, Path) or isinstance(url, Resource):
if not has_protocol or isinstance(url, Path):
open_function = open
else:
open_function = urlopen
Expand Down

0 comments on commit 62fec96

Please sign in to comment.