browse
Some checks failed
/ job (push) Failing after 5m42s

This commit is contained in:
Marc Beninca 2024-06-06 10:17:02 +02:00
parent 0a1bb94e6c
commit f0d5bd12b0
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

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):