Skip to content

Commit 23c9e13

Browse files
author
Heiko Alexander Weber
authored
#minor | #3
* + added experimental flag * + added ui backend (experimental) * updated readme * #patch | updated readme
1 parent 57e4a94 commit 23c9e13

12 files changed

Lines changed: 1505 additions & 487 deletions

File tree

.complate/config.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
version: 0.5
2-
1+
version: 0.6
32
templates:
43
default:
54
content:
65
inline: |-
7-
{{ summary }} | {{ version }}
8-
Components: [{{ components }}]
9-
Author: {{ author.name }} | {{ author.account }}
6+
{{ a.summary }} | {{ e.version }}
7+
Components: [{{ f.components }}]
8+
Author: {{ b.author.name }} | {{ c.author.account }}
109
1110
Files:
12-
{{ git.staged.files }}
11+
{{ d.git.staged.files }}
1312
values:
14-
summary:
13+
a.summary:
1514
prompt: "Enter the summary"
16-
author.name:
17-
shell: "git config user.name"
18-
author.account:
15+
b.author.name:
16+
shell: "git config user.name | tr -d '\n'"
17+
c.author.account:
1918
shell: "whoami | tr -d '\n'"
20-
git.staged.files:
19+
d.git.staged.files:
2120
shell: "git diff --name-status --cached"
22-
version:
21+
e.version:
2322
select:
2423
text: Select the version level that shall be incremented
2524
options:
2625
- "#patch"
2726
- "#minor"
2827
- "#major"
29-
components:
28+
f.components:
3029
check:
3130
text: Select the components that are affected
3231
options:
33-
- Security
34-
- ValueProvider
35-
- CLI
36-
- Misc
32+
- security
33+
- command::print
34+
- backend::cli
35+
- backend::ui
36+
- misc

.github/workflows/pipeline.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,21 @@ env:
66

77
jobs:
88
check:
9-
name: check
9+
name: check (${{ matrix.name }})
1010
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
include:
14+
- name: "default"
15+
features: ""
16+
- name: "all"
17+
features: --all-features
18+
- name: "backend::ui"
19+
features: --features "backend::ui" --no-default-features
1120
steps:
1221
- uses: actions/checkout@v1
22+
- name: Install tools
23+
run: sudo apt-get install build-essential libncurses5-dev libncursesw5-dev
1324
- name: Check formatting
1425
run: cargo fmt --all -- --check
1526
- name: Check README.md synchronization
@@ -19,11 +30,11 @@ jobs:
1930
- name: Scan code
2031
run: |
2132
rustup component add clippy
22-
cargo clippy --all-targets --all-features -- -D warnings
33+
cargo clippy --all-targets ${{ matrix.features }} -- -D warnings
2334
- name: Execute tests
24-
run: cargo test
35+
run: cargo test ${{ matrix.features }}
2536
- name: Build program
26-
run: cargo build
37+
run: cargo build ${{ matrix.features }}
2738

2839
tag:
2940
if: github.ref == 'refs/heads/master'
@@ -51,7 +62,7 @@ jobs:
5162
body: |
5263
Release ${{ steps.tag.outputs.new_tag }}.
5364
draft: false
54-
prerelease: true
65+
prerelease: false
5566
- run: printf ${{ steps.create_release.outputs.upload_url }} > ${{ env.RELEASE_FILE }}
5667
- name: Upload release data
5768
uses: actions/upload-artifact@v1.0.0
@@ -68,6 +79,8 @@ jobs:
6879
- name: Get version
6980
id: get_version
7081
run: echo ::set-output name=VERSION::$(git tag --points-at HEAD --sort -version:refname | head -1)
82+
- name: Install tools
83+
run: sudo apt-get install build-essential libncurses5-dev libncursesw5-dev
7184
- name: Publish
7285
id: publish
7386
run: |
@@ -99,7 +112,9 @@ jobs:
99112
id: get_release_data
100113
run: echo ::set-output name=upload_url::$(cat RELEASE/${{ env.RELEASE_FILE }})
101114
- name: install tools
102-
run: rustup target install ${{ matrix.target }}
115+
run: |
116+
sudo apt-get install build-essential libncurses5-dev libncursesw5-dev &&
117+
rustup target install ${{ matrix.target }}
103118
- name: build-${{ matrix.target }}
104119
run: |
105120
VERSION=${{ steps.get_version.outputs.VERSION }} make update-version &&

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"rust-analyzer.cargo.features": [
3+
"backend::cli",
4+
"backend::ui",
5+
]
6+
}

0 commit comments

Comments
 (0)