11#! /bin/bash
22
3+ # (C) 2023 RandomCoderOrg, ubuntu-on-android
4+ # help_udroid.sh: A part of udroid scripts
5+ # To show help messages for different options in udroid scripts
6+ #
7+
8+ # help_login: show help for login
39help_login () {
4- # TODO: Add help for login
5- :
10+ echo " udroid [ login| --login ] [<options>] <suite>:<varient> <cmd>"
11+ echo " login to a suite"
12+ echo
13+ echo " options:"
14+ echo " -h, --help: show this help message and exit"
15+ echo " --user: Allows the user to specify the login user for the filesystem."
16+ # echo "-p or --path: Allows the user to set a custom installation path for the filesystem instead of the default directory."
17+ echo " --name: Allows the user to specify a custom name for the filesystem to install"
18+ echo " --bind or -b: Allows the user to specify extra mount points for the filesystem."
19+ echo " --isolated: Creates an isolated environment for the filesystem."
20+ echo " --fix-low-ports: Fixes low ports for the filesystem."
21+ echo " --no-shared-tmp: Disables shared tmp for the filesystem."
22+ echo " --no-link2symlink: Disables link2symlink for the filesystem."
23+ echo " --no-sysvipc: Disables sysvipc for the filesystem."
24+ echo " --no-fake-root-id: Disables fake root id for the filesystem."
25+ # echo "--no-cwd-active-directory | --ncwd (unstable): Disables the current working directory for the active directory for the filesystem."
26+ echo " --no-kill-on-exit: Disables kill on exit for the filesystem."
27+ echo
28+ echo " <cmd>:"
29+ echo " command to run in the filesystem and exit"
630}
731
32+ # help_root: show help when no option is given or every option is invalid
33+ help_root () {
34+ echo " udroid <option> [<options>] [<suite>]:[<varient>]"
35+ echo
36+ echo " options:"
37+ echo " install, --install [<options>] <suite>:<varient> install a distro"
38+ echo " remove, --remove <suite>:<varient> remove a distro"
39+ echo " list, --list [options] list distros"
40+ echo " login, --login <suite>:<varient> login to a distro"
41+ echo " upgrade, --upgrade upgrade udroid scripts"
42+ echo " help, --help show this help message and exit"
43+ echo " --update-cache update cache from remote"
44+ echo
45+ }
46+
47+ # help_list: show help for list
848help_list () {
949 echo " udroid [ list| --list ] [options]"
1050 echo " options:"
@@ -14,14 +54,20 @@ help_list() {
1454 echo " --list-installed show only installed distros"
1555}
1656
57+ # help_upgrade: show help for upgrade
1758help_install () {
18- echo " udroid [ install| --install ] <distro> "
59+ echo " udroid [ install| --install ] [<options>] [<suite>]:[<varient>] "
1960 echo " installs udroid distros"
61+ echo " options:"
62+ echo " -h, --help show this help message and exit"
63+ echo " --no-verify-integrity do not verify integrity of filesystem"
64+ echo
2065 echo " example:"
2166 echo " udroid install jammy:raw"
2267 echo " udroid install --install jammy:raw"
2368}
2469
70+ # help_upgrade: show help for upgrade
2571help_remove () {
2672 echo " udroid [ remove| --remove ] <distro>"
2773 echo " removes udroid distros"
0 commit comments