# Path: moa/sysConf.py
# USERCONFIGFILE = os.path.join(os.path.expanduser('~'),
#                               '.config', 'moa', 'config')
# SYSCONFIGFILE = os.path.join('etc', 'moa', 'config')
# def _interpret_var(v):
#     def __init__(self):
#     def getUser(self):
#     def saveUser(self, conf):
#     def getVersion(self):
# class SysConf(Yaco.Yaco):


import os
import signal
import moa.ui
import moa.utils
import moa.args
import moa.logger as l
from moa.sysConf import sysConf
* interrupted - manual interruption

"""



LLOG = False
STATUS = 'unknown'


@moa.args.addFlag('-a', dest='showAll', help='show all parameters')
@moa.args.addFlag('-p', dest='showPrivate', help='show private parameters')
@moa.args.addFlag('-R', dest='showRecursive', help='show recursively defined '
                  + 'parameters not specified by the local template')
@moa.args.addFlag('-u', dest='showUnrendered', help='show unrendered values ' +
                  '(when using inline parameters)')
@moa.args.needsJob
@moa.args.doNotLog
@moa.args.command
def status(job, args):
    """
    Show job status

    Print a short status of the job, including configuration
    """
    if job.template.name == 'nojob':
        moa.ui.fprint("not a Moa job")
        return
    message = ""


# Path: moa/sysConf.py
# USERCONFIGFILE = os.path.join(os.path.expanduser('~'),
#                               '.config', 'moa', 'config')
# SYSCONFIGFILE = os.path.join('etc', 'moa', 'config')
# def _interpret_var(v):
#     def __init__(self):
#     def getUser(self):
#     def saveUser(self, conf):
#     def getVersion(self):
# class SysConf(Yaco.Yaco):


# Path: moa/plugin/system/status.py
import os
import signal
import moa.ui
import moa.utils
import moa.args
import moa.logger as l
from moa.sysConf import sysConf

* interrupted - manual interruption

"""



LLOG = False
STATUS = 'unknown'


@moa.args.addFlag('-a', dest='showAll', help='show all parameters')
@moa.args.addFlag('-p', dest='showPrivate', help='show private parameters')
@moa.args.addFlag('-R', dest='showRecursive', help='show recursively defined '
                  + 'parameters not specified by the local template')
@moa.args.addFlag('-u', dest='showUnrendered', help='show unrendered values ' +
                  '(when using inline parameters)')
@moa.args.needsJob
@moa.args.doNotLog
@moa.args.command
def status(job, args):
    """
    Show job status

    Print a short status of the job, including configuration
    """
    if job.template.name == 'nojob':
        moa.ui.fprint("not a Moa job")
        return
    message = ""


    message +="{{bold}}Moa{{reset}} %s " % sysConf.getVersion()