|
18 | 18 | * [Stopping problems](#stopping-problems) |
19 | 19 | * [Removing problem images](#removing-problem-images) |
20 | 20 | * [Removing repositories](#removing-repositories) |
| 21 | + * [Updating repositories](#updating-repositories) |
21 | 22 | * [Notes on repository and problem names](#notes-on-repository-and-problem-names) |
22 | 23 | + [Problem query](#problem-query) |
23 | 24 | + [Name rules](#name-rules) |
24 | 25 | - [How to Add Soma Support to Your Repository](#how-to-add-soma-support-to-your-repository) |
25 | | - * [`soma.toml` syntax](#-somatoml--syntax) |
| 26 | + * [`soma.toml` syntax](#somatoml-syntax) |
26 | 27 | + [The root section](#the-root-section) |
27 | | - - [The `name` field](#the--name--field) |
28 | | - - [The `work_dir` field (optional)](#the--work-dir--field--optional-) |
29 | | - + [The `[binary]` section](#the---binary---section) |
30 | | - - [The `os` field](#the--os--field) |
31 | | - - [The `cmd` field](#the--cmd--field) |
| 28 | + - [The `name` field](#the-name-field) |
| 29 | + - [The `work_dir` field (optional)](#the-work_dir-field-optional) |
| 30 | + + [The `[binary]` section](#the-binary-section) |
| 31 | + - [The `os` field](#the-os-field) |
| 32 | + - [The `cmd` field](#the-cmd-field) |
32 | 33 | - [File entries](#file-entries) |
33 | | - * [The `path` field](#the--path--field) |
34 | | - * [The `target_path` field (optional)](#the--target-path--field--optional-) |
35 | | - * [The `public` field (optional)](#the--public--field--optional-) |
| 34 | + * [The `path` field](#the-path-field) |
| 35 | + * [The `target_path` field (optional)](#the-target_path-field-optional) |
| 36 | + * [The `public` field (optional)](#the-public-field-optional) |
36 | 37 | + [Other subconfigurations](#other-subconfigurations) |
37 | | - * [`soma-list.toml` syntax](#-soma-listtoml--syntax) |
38 | | - + [The `problems` field](#the--problems--field) |
| 38 | + * [`soma-list.toml` syntax](#soma-listtoml-syntax) |
| 39 | + + [The `problems` field](#the-problems-field) |
39 | 40 | - [Development](#development) |
40 | 41 | * [Prerequisites](#prerequisites) |
41 | | - * [Testing, Building, and Running](#testing--building--and-running) |
| 42 | + * [Testing, Building, and Running](#testing-building-and-running) |
42 | 43 | - [License](#license) |
43 | 44 | * [Contribution](#contribution) |
44 | 45 |
|
@@ -140,13 +141,14 @@ We are expecting to release `0.1.0-alpha` soon to [crates.io]. |
140 | 141 |
|
141 | 142 | ### Command overview |
142 | 143 |
|
143 | | - |
144 | 144 | | | Add / Create | Remove | |
145 | 145 | | -------- | ------------ | ------ | |
146 | 146 | | Repository | [add](#adding-repositories) | [remove](#removing-repositories) | |
147 | 147 | | Image | [build](#building-problem-images) | [clean](#removing-problem-images) | |
148 | 148 | | Container | [run](#running-problems) | [stop](#stopping-problems) | |
149 | 149 |
|
| 150 | +Additionally, [update](#updating-repositories) |
| 151 | + |
150 | 152 |
|
151 | 153 | ### Adding repositories |
152 | 154 |
|
@@ -249,6 +251,17 @@ $ soma remove soma-bata-list |
249 | 251 | There should be no problem image or container associated to the repository when you use this command. Use `clean` and `stop` command to remove them if necessary. Auto pruning for your convenience will be implemented in the future (see [#115][issue #115]). |
250 | 252 |
|
251 | 253 |
|
| 254 | +### Updating repositories |
| 255 | + |
| 256 | +You can update and sync repositories with `update` command: |
| 257 | + |
| 258 | +```bash |
| 259 | +$ soma update soma-bata-list |
| 260 | +``` |
| 261 | + |
| 262 | +Note that problem containers that are already running are untouched by this command. You might want to stop, build, and run the problem again after updating a repository. |
| 263 | + |
| 264 | + |
252 | 265 | ### Notes on repository and problem names |
253 | 266 |
|
254 | 267 | #### Problem query |
|
0 commit comments