Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit 926a380

Browse files
committed
Update documentation
1 parent dd20009 commit 926a380

File tree

2 files changed

+29
-15
lines changed

2 files changed

+29
-15
lines changed

README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,36 @@
11
# qa-scripts
22

3-
A simple python script to test pull-requests on UBports repositories.
3+
The UBports QA scripts allow you to efficiently manage PPAs from
4+
repo.ubports.com for testing deb components. See
5+
http://docs.ubports.com/en/latest/about/process/ppa.html.
46

57
## Usage
68

79
```
8-
phablet@ubuntu-phablet:~$ ubports-qa
10+
phablet@ubuntu-phablet:~$ ./ubports-qa
911
usage: ubports-qa [-h] {install,remove,list,update} ...
1012
11-
UBports QA scripts
13+
The UBports QA scripts allow you to efficiently manage PPAs from
14+
repo.ubports.com for testing deb components. See
15+
http://docs.ubports.com/en/latest/about/process/ppa.html.
1216
1317
positional arguments:
1418
{install,remove,list,update}
15-
install Add pr to install
16-
remove Remove installed repo
17-
list List installed repos
18-
update Update system using apt
19+
install Install a ppa or pull-request
20+
remove Remove and uninstall a PPA
21+
list List installed PPAs
22+
update Update all packages using apt
1923
2024
optional arguments:
2125
-h, --help show this help message and exit
2226
```
27+
28+
### Examples
29+
30+
| Command | Explaination |
31+
|---|---|
32+
| `sudo ubports-qa install xenial_-_somebranch` | Add the `xenial_-_somebranch` ppa and install upgrade all packages |
33+
| `sudo ubports-qa install dialer-app 5` | Add the branch of the fifth pull-request on the dialer-app as a PPA and upgrade all packages |
34+
| `sudo ubports-qa remove xenial_-_somebranch` | Remove the `xenial_-_somebranch` ppa and upgrade all packages |
35+
| `ubports-qa list` | List all installed testing-PPAs |
36+
| `sudo ubports-qa update` | Upgrade all packages |

ubports-qa

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,22 @@ def update(args):
119119
apt_upgrade()
120120
unmount()
121121

122-
parser = argparse.ArgumentParser(description='UBports QA scripts')
122+
parser = argparse.ArgumentParser(description='The UBports QA scripts allow you to efficiently manage PPAs from repo.ubports.com for testing deb components. See http://docs.ubports.com/en/latest/about/process/ppa.html.')
123123
subparsers = parser.add_subparsers(help='')
124124

125-
parser_install = subparsers.add_parser('install', help='Install a pull-request')
126-
parser_install.add_argument('repo', type=str, help='Name of the git repository')
127-
parser_install.add_argument('pr', type=int, help='Pull-request to install (numeric ID)', nargs='?', default=-1)
125+
parser_install = subparsers.add_parser('install', help='Install a ppa or pull-request', description='Install a ppa or pull-request. See http://docs.ubports.com/en/latest/about/process/ppa.html.')
126+
parser_install.add_argument('repo', type=str, help='Name of a PPA on repo.ubports.com. Alternatively, if the \'pr\' argument is provided, the name of a git repository can be specified to automatically add the PPA from a pull-request.')
127+
parser_install.add_argument('pr', type=int, help='Numeric ID of a pull-request on the git repository specified in the \'repo\' argument. If \'repo\' is supposed to be the name of a ppa, the \'pr\' argument should not be specified.', nargs='?', default=-1)
128128
parser_install.set_defaults(func=install)
129129

130-
parser_remove = subparsers.add_parser('remove', help='Remove installed repository / branch')
131-
parser_remove.add_argument('repo', type=str, help='Name of the repository / branch')
130+
parser_remove = subparsers.add_parser('remove', help='Remove and uninstall a PPA', description='Remove and uninstall a ppa')
131+
parser_remove.add_argument('repo', type=str, help='Name of the ppa')
132132
parser_remove.set_defaults(func=remove)
133133

134-
parser_list = subparsers.add_parser('list', help='List installed repositories / branches')
134+
parser_list = subparsers.add_parser('list', help='List installed PPAs', description='List installed PPAs')
135135
parser_list.set_defaults(func=list)
136136

137-
parser_update = subparsers.add_parser('update', help='Update system using apt')
137+
parser_update = subparsers.add_parser('update', help='Update all packages using apt', description='Update all packages using apt')
138138
parser_update.set_defaults(func=update)
139139

140140
try:

0 commit comments

Comments
 (0)