Skip to content

Commit

Permalink
update README.md - minimize config ### tags, add .sway-config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saurbhc committed May 28, 2023
1 parent d35251c commit 7df7727
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .sway-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
repos:
- id: sway
repo: git@github.com:saurbhc/sway
path: .
envs:
- env: dev
branch: dev
- env: prod
branch: main
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,31 @@
$ pip install sway
```

### Config creation
### Branch Management

Triggers `git checkout <branch in 'dev' env>`

```console
$ sway config init
$ sway branch -e dev
```

### Config validation
Multiple envs can be setup in `.sway-config.yaml`

### Config

config creation interactively

```console
$ sway config validate
$ sway config init
```

### Branch Management

Triggers `git checkout <branch in 'dev' env>`
config validation

```console
$ sway branch -e dev
$ sway config validate
```

Multiple envs can be setup in `.sway-config.yaml`
For example config, see `.sway-config.yml`

---

Expand Down

0 comments on commit 7df7727

Please sign in to comment.