Skip to content

Commit 90e425b

Browse files
committed
Fix import errors: add missing imports for Enum and dataclass in parser.py, fix indentation in core.py
1 parent fa608b8 commit 90e425b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

shellrosetta/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
from typing import Optional, Tuple
5+
from .mappings import (
56
LINUX_TO_PS, PS_TO_LINUX,
67
LS_FLAGS_MAP, RM_FLAGS_MAP, CP_FLAGS_MAP, MV_FLAGS_MAP,
78
GREP_FLAGS_MAP, FIND_FLAGS_MAP, CAT_FLAGS_MAP

shellrosetta/parser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33

44
import re
5+
import shlex
6+
from enum import Enum
7+
from dataclasses import dataclass
58
from typing import Dict, List, Optional, Tuple, Union
9+
610
class NodeType(Enum):
711
COMMAND = "command"
812
ARGUMENT = "argument"

0 commit comments

Comments
 (0)