Compare commits

...

2 commits

Author SHA1 Message Date
f0d5bd12b0
browse
Some checks failed
/ job (push) Failing after 5m42s
2024-06-06 10:17:02 +02:00
0a1bb94e6c
path 2024-06-06 10:08:04 +02:00
2 changed files with 17 additions and 13 deletions

2
cd.sh
View file

@ -591,7 +591,7 @@ local path
echo -n "\
${path}
${CD_GIT_CHILD}
${CD_PYTHON_PACKAGES}/${CD_GIT_CHILD}
"
"${CD_PYTHON_ALIAS}" -m "${CD_GIT_CHILD}" "${@}"
}

View file

@ -13,18 +13,7 @@ project = Project(projects)
def cd_browse_workspace():
print(f'''\
{project.root}
''', end=str())
paths = []
for directory, directories, files in os.walk(project.root):
for file in files:
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):
print(path)
browse(project.root)
def cd_build_project():
@ -75,6 +64,19 @@ def cd_synchronize():
)
def browse(root: str):
paths = []
for directory, _, files in os.walk(root):
for file in files:
absolute_path = os.path.join(directory, file)
relative_path = os.path.relpath(absolute_path, start=root)
paths.append(relative_path)
open(path)
for path in sorted(paths):
print(path)
shut(path)
def install_commands(path):
step('Install commands')
user = '/usr/local/bin'
@ -111,6 +113,8 @@ def set_ssh(*arguments):
if ssh_hosts:
fs.write(known, ssh_hosts)
os.chmod(known, 0o400)
#
browse(home)
def open(*arguments):