parent
0a1bb94e6c
commit
f0d5bd12b0
1 changed files with 16 additions and 12 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue