Skip to content

Commit

Permalink
Refactor: Moved commands.py to command_lib
Browse files Browse the repository at this point in the history
This is commit 8 of the refactor to reduce utils and minimize
spaghetti code

The commands.py had many modules concerned with the command
library. Hence it made sense to move it into the command_lib
folder instead of keeping it in the utils folder. This also
removes any confusion between the Command class and command
library operations.

The main executable does not work

Signed-off-by: Nisha K <[email protected]>
  • Loading branch information
Nisha K committed Jan 15, 2018
1 parent 2988e5a commit 09f0bf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Empty file added command_lib/__init__.py
Empty file.
8 changes: 4 additions & 4 deletions utils/commands.py → command_lib/command_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
import subprocess
import yaml

from .container import docker_command
from .container import execute
from .general import parse_command
from .constants import container
from utils.container import docker_command
from utils.container import execute
from utils.general import parse_command
from utils.constants import container
from classes.command import Command

'''
Expand Down

0 comments on commit 09f0bf9

Please sign in to comment.