This commit is contained in:
parent
380684eed9
commit
5a2cf6253b
2 changed files with 11 additions and 9 deletions
|
@ -25,6 +25,16 @@ def cd_browse_workspace():
|
||||||
print(path)
|
print(path)
|
||||||
|
|
||||||
|
|
||||||
|
def cd_build_project():
|
||||||
|
for extension in ['py', 'sh']:
|
||||||
|
path = os.path.join(project.root, f'build.{extension}')
|
||||||
|
if os.path.exists(path):
|
||||||
|
ps.run(path)
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def cd_clone_branch():
|
def cd_clone_branch():
|
||||||
print(f'''\
|
print(f'''\
|
||||||
{project.url}
|
{project.url}
|
||||||
|
@ -48,6 +58,7 @@ def install_commands(path):
|
||||||
user = '/usr/local/bin'
|
user = '/usr/local/bin'
|
||||||
for command in [
|
for command in [
|
||||||
'browse-workspace',
|
'browse-workspace',
|
||||||
|
'build-project',
|
||||||
'clone-branch',
|
'clone-branch',
|
||||||
'list-environment',
|
'list-environment',
|
||||||
]:
|
]:
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
if [ -x './build.py' ] ; then
|
|
||||||
./build.py \
|
|
||||||
|| exit
|
|
||||||
elif [ -x './build.sh' ] ; then
|
|
||||||
./build.sh \
|
|
||||||
|| exit
|
|
||||||
else
|
|
||||||
exit
|
|
||||||
fi
|
|
Loading…
Reference in a new issue