English
alta publish
Dry run: checks the folder is committed and pushed, prints the source block; sends nothing.
Usage
text
alta publish <dir> [--json]Arguments
| Name | Description | |
|---|---|---|
dir | required | A folder inside a git repository. |
Options
| Name | Type | Default | Description |
|---|---|---|---|
--json | flag | Print the result as JSON. |
Exit codes
| Name | Description |
|---|---|
0 | ok |
1 | problems found |
2 | bad usage |
3 | not in this version |
Examples
Print the source block of a pushed folder
Terminal
sh
alta publish my-packOutput · exit 1
text
not ready (dry run: nothing sent)
problem: my-pack is not in a git repository
1. Nothing was sent. Fix the problems above, then run `alta publish` again.