# orca.views.commands

> A module of morca's API.

The `orca` command lines the pages show beside their buttons, so what the UI does can be done from a shell, quoted for `sh`.

## Functions

### `cancel_cli`

```mojo
def cancel_cli(r: RunRow) -> String
```

### `retry_cli`

```mojo
def retry_cli(r: RunRow) -> String
```

### `shell_quote`

```mojo
def shell_quote(s: StringSpan) -> String
```

`s` as one shell word: as it is if it's only letters, digits and `-_.,:/@=+%`, else in single quotes.

### `backfill_cmd`

```mojo
def backfill_cmd(name: String, keys: String, rerun: Bool) -> String
```

`orca backfill [--rerun] <pipeline> <keys>`, as `orca` reads it.

### `remote_cmd`

```mojo
def remote_cmd(cmd: String, url: String = "<url>") -> String
```

`cmd`, an `orca ...` line, against the UI at `url` from anywhere: `orca login <url> && orca --remote <url> ...`. The pages show `<url>`, which their script makes the address the page was loaded from.

### `run_cmd`

```mojo
def run_cmd(binary: String, keys: String) -> String
```

The binary's `run --partitions <keys>`: one run, in that process.

### `rebuild_cmd`

```mojo
def rebuild_cmd(dataset: String, keys: String) -> String
```

`orca rebuild <dataset> <keys>`, as `orca` reads it.
