"""EasyEngine shell executaion functions."""
import os
import sys
import subprocess
from subprocess import Popen


class EEShellExec():
    """Method to run shell commands"""
    def __init__():
        pass

    def cmd_exec(command):
        try:
            retcode = subprocess.getstatusoutput(command)
            if retcode[0] == 0:
                return True
            else:
                print(retcode[1])
                return False
        except OSError as e:
            print(e)
            return False