Compare commits

..

No commits in common. "5a2cf6253bbf62c35f4e7a41f54b2d5f45bf100d" and "60dc1a34958f4f7fede9f0d42695cb8aa3025151" have entirely different histories.

4 changed files with 20 additions and 13 deletions

View file

@ -21,20 +21,10 @@ def cd_browse_workspace():
absolute_path = os.path.join(directory, file)
relative_path = os.path.relpath(absolute_path, start=project.root)
paths.append(relative_path)
for path in sorted(paths):
for path in paths:
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():
print(f'''\
{project.url}
@ -45,7 +35,7 @@ def cd_clone_branch():
'--branch', project.branch,
'--',
project.url,
project.root,
os.path.realpath(os.curdir),
)
@ -58,7 +48,6 @@ def install_commands(path):
user = '/usr/local/bin'
for command in [
'browse-workspace',
'build-project',
'clone-branch',
'list-environment',
]:

1
cmd/cd-browse-workspace.sh Executable file
View file

@ -0,0 +1 @@
tree -a "${GITHUB_WORKSPACE}"

9
cmd/cd-build-project.sh Executable file
View file

@ -0,0 +1,9 @@
if [ -x './build.py' ] ; then
./build.py \
|| exit
elif [ -x './build.sh' ] ; then
./build.sh \
|| exit
else
exit
fi

8
cmd/cd-clone-branch.sh Executable file
View file

@ -0,0 +1,8 @@
git clone \
--branch "${GITHUB_REF_NAME}" \
-- \
"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
'.'
rm --force --recursive \
'.git' '.gitignore'