Merge branch 'master' of git.covalent.cz:overwatch/over
This commit is contained in:
commit
ba1034bf22
17 changed files with 60 additions and 14 deletions
0
.over_inhibit_deployment
Normal file
0
.over_inhibit_deployment
Normal file
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
2
aux.py
2
aux.py
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
from . import app
|
from . import app
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
import queue
|
import queue
|
||||||
|
@ -66,6 +66,7 @@ class Command:
|
||||||
self.__dict__['thread'] = None
|
self.__dict__['thread'] = None
|
||||||
self.__dict__['fifo'] = None
|
self.__dict__['fifo'] = None
|
||||||
self.__dict__['terminated'] = False
|
self.__dict__['terminated'] = False
|
||||||
|
self.__dict__['returncode'] = None
|
||||||
|
|
||||||
def dump(self, sequence=None, pretty=False):
|
def dump(self, sequence=None, pretty=False):
|
||||||
out = []
|
out = []
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
import math
|
import math
|
||||||
|
|
14
deploy-template.sh
Executable file
14
deploy-template.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#! /bin/zsh
|
||||||
|
# encoding: utf-8
|
||||||
|
|
||||||
|
if [[ -a ".over_inhibit_deployment" ]]; then
|
||||||
|
echo '!! deployment inhibited by lock file (hint: run this from the target directory, not the over directory)'
|
||||||
|
elif [[ -n "$1" ]]; then
|
||||||
|
OVER_DIR="$(readlink -f "$(dirname "$0")")"
|
||||||
|
ln -s "$OVER_DIR"
|
||||||
|
cp "$OVER_DIR/template.py" "$1"
|
||||||
|
chmod +x "$1"
|
||||||
|
echo "over" >> .gitignore
|
||||||
|
else
|
||||||
|
echo '!! Missing argument (program name).'
|
||||||
|
fi
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
#
|
#
|
||||||
# Part of Project Overwatch
|
# Part of Project Overwatch
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
31
template.py
Normal file
31
template.py
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
#! /usr/bin/env python3
|
||||||
|
# encoding: utf-8
|
||||||
|
|
||||||
|
# library imports
|
||||||
|
import over
|
||||||
|
|
||||||
|
# local imports
|
||||||
|
#import version
|
||||||
|
|
||||||
|
# --------------------------------------------------
|
||||||
|
# Exceptions
|
||||||
|
|
||||||
|
class ConfigurationError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
|
# --------------------------------------------------
|
||||||
|
# Functions
|
||||||
|
|
||||||
|
# --------------------------------------------------
|
||||||
|
# Classes
|
||||||
|
|
||||||
|
# --------------------------------------------------
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main = over.core.app.Main('short-name', 'Human Readable Name', version.str, 'LICENSE', use_cfg_file=False)
|
||||||
|
main.add_option('option', 'type', 'default', 'Description.', short_name='s')
|
||||||
|
main.add_help('Description', ['What it does.'])
|
||||||
|
main.enable_help('h')
|
||||||
|
main.parse()
|
||||||
|
|
||||||
|
...
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/env python3
|
#! /usr/bin/env python3
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
_version = (0, '00000000') # OVER_VERSION_IDENTIFIER
|
_version = (0, '00000000') # OVER_VERSION_IDENTIFIER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue