Compare commits
8 commits
c095fe57a2
...
4e9a2f3804
Author | SHA1 | Date | |
---|---|---|---|
4e9a2f3804 | |||
d5e8008417 | |||
0e585adc7c | |||
9fea2acbfd | |||
4d61f04344 | |||
50b2fbfeef | |||
b6b8e03b50 | |||
2c85bcc6bc |
2 changed files with 19 additions and 21 deletions
31
cd.sh
31
cd.sh
|
@ -573,17 +573,13 @@ ${CD_PYTHON_PACKAGES}
|
|||
cd_write_python_module () {
|
||||
cd_step "Write Python module"
|
||||
cd_write "${CD_PYTHON_PACKAGES}/env.py" "\
|
||||
CD_STEP = ${CD_STEP}
|
||||
|
||||
|
||||
$(cd_echo CD_DOWN CD_VERTICAL CD_UP)
|
||||
|
||||
$(cd_echo CD_OPEN CD_SHUT)
|
||||
|
||||
$(cd_echo CD_SPLIT)
|
||||
|
||||
$(cd_echo CD_OPEN CD_DOWN)
|
||||
$(cd_echo CD_VERT CD_SPLT)
|
||||
$(cd_echo CD___UP CD_SHUT)
|
||||
|
||||
$(cd_echo CD_OS_ID CD_OS_VERSION)
|
||||
|
||||
CD_STEP = $((CD_STEP+1))
|
||||
"
|
||||
}
|
||||
|
||||
|
@ -707,15 +703,15 @@ cd_shut () {
|
|||
}
|
||||
|
||||
cd_split () {
|
||||
echo "${CD_SPLIT}"
|
||||
echo "${CD_SPLT}"
|
||||
}
|
||||
|
||||
cd_step () {
|
||||
CD_STEP=$((CD_STEP+1))
|
||||
echo -n "\
|
||||
${CD_DOWN}
|
||||
${CD_VERTICAL} ${CD_STEP} ${@}
|
||||
${CD_UP}
|
||||
${CD_VERT} ${CD_STEP} ${@}
|
||||
${CD___UP}
|
||||
"
|
||||
}
|
||||
|
||||
|
@ -755,15 +751,14 @@ CD_PM_APT="apt"
|
|||
CD_PM_DNF="dnf"
|
||||
CD_PM_PACMAN="pacman"
|
||||
|
||||
CD_OPEN="${CD_BOX_DOWN}${CD_BOX_LEFT}"
|
||||
CD_SHUT="${CD_BOX_UP}${CD_BOX_LEFT}"
|
||||
|
||||
CD_HORIZONTAL="${CD_BOX_HORIZONTAL}╌╌┄┄┈┈"
|
||||
CD_VERTICAL="${CD_BOX_VERTICAL}"
|
||||
|
||||
CD_OPEN="${CD_BOX_DOWN}${CD_BOX_LEFT}"
|
||||
CD_DOWN="${CD_BOX_DOWN}${CD_HORIZONTAL}"
|
||||
CD_SPLIT="${CD_BOX_RIGHT}${CD_HORIZONTAL}"
|
||||
CD_UP="${CD_BOX_UP}${CD_HORIZONTAL}"
|
||||
CD_VERT="${CD_BOX_VERTICAL}"
|
||||
CD_SPLT="${CD_BOX_RIGHT}${CD_HORIZONTAL}"
|
||||
CD___UP="${CD_BOX_UP}${CD_HORIZONTAL}"
|
||||
CD_SHUT="${CD_BOX_UP}${CD_BOX_LEFT}"
|
||||
|
||||
# run
|
||||
cd_main "${@}"
|
||||
|
|
|
@ -76,6 +76,7 @@ def cd_synchronize():
|
|||
|
||||
|
||||
def install_commands(path):
|
||||
step('Install commands')
|
||||
user = '/usr/local/bin'
|
||||
for command in [
|
||||
'browse-workspace',
|
||||
|
@ -89,6 +90,8 @@ def install_commands(path):
|
|||
|
||||
|
||||
def set_ssh(*arguments):
|
||||
step('Set SSH')
|
||||
#
|
||||
ssh_key, ssh_hosts = arguments
|
||||
#
|
||||
ssh_type = 'ed25519'
|
||||
|
@ -121,11 +124,11 @@ def shut(*arguments):
|
|||
|
||||
|
||||
def split():
|
||||
print(env.CD_SPLIT, flush=True)
|
||||
print(env.CD_SPLT, flush=True)
|
||||
|
||||
|
||||
def step(*arguments):
|
||||
env.CD_STEP += 1
|
||||
print(env.CD_DOWN)
|
||||
print(env.CD_VERTICAL, env.CD_STEP, *arguments)
|
||||
print(env.CD_UP, flush=True)
|
||||
print(env.CD_VERT, env.CD_STEP, *arguments)
|
||||
print(env.CD___UP, flush=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue