Skip to content

Commit ac6384d

Browse files
committed
Generate asdf-clang-tools-static plugin from template.
0 parents  commit ac6384d

File tree

18 files changed

+386
-0
lines changed

18 files changed

+386
-0
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ""
5+
labels: bug
6+
assignees: ""
7+
---
8+
9+
**Describe the bug**
10+
11+
<!-- A clear and concise description of what the bug is. -->
12+
13+
**Steps to reproduce**
14+
15+
<!-- Steps to reproduce the behavior: -->
16+
17+
**Expected behavior**
18+
19+
<!-- A clear and concise description of what you expected to happen. -->
20+
21+
**Screenshots**
22+
23+
<!-- If applicable, add screenshots to help explain your problem. -->
24+
25+
**Additional context**
26+
27+
<!-- Add any other context about the problem here. -->
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ""
5+
labels: enhancement
6+
assignees: ""
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
11+
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
12+
13+
**Describe the solution you'd like**
14+
15+
<!-- A clear and concise description of what you want to happen. -->
16+
17+
**Describe alternatives you've considered**
18+
19+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
20+
21+
**Additional context**
22+
23+
<!-- Add any other context or screenshots about the feature request here. -->
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
## Description
4+
5+
<!--- Describe your changes in detail -->
6+
7+
## Motivation and Context
8+
9+
<!--- Why is this change required? What problem does it solve? -->
10+
<!--- If it fixes an open issue, please link to the issue here. -->
11+
12+
## Types of changes
13+
14+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
15+
16+
- [ ] Bug fix (non-breaking change which fixes an issue)
17+
- [ ] New feature (non-breaking change which adds functionality)
18+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
19+
20+
## Usage examples
21+
22+
<!--- Provide examples of intended usage -->
23+
24+
## How Has This Been Tested?
25+
26+
<!--- Please describe in detail how you tested your changes. -->
27+
28+
## Checklist:
29+
30+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
31+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
32+
33+
- [ ] I have updated the documentation accordingly.
34+
- [ ] I have added tests to cover my changes.

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
plugin_test:
11+
name: asdf plugin test
12+
strategy:
13+
matrix:
14+
os:
15+
- ubuntu-latest
16+
- macos-latest
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- name: asdf_plugin_test
20+
uses: asdf-vm/actions/plugin-test@v1
21+
with:
22+
command: clang-format

.github/workflows/lint.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
shellcheck:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Install asdf dependencies
17+
uses: asdf-vm/actions/install@v1
18+
19+
- name: Run ShellCheck
20+
run: scripts/shellcheck.bash
21+
22+
shellfmt:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v2
27+
28+
- name: Install asdf dependencies
29+
uses: asdf-vm/actions/install@v1
30+
31+
- name: List file to shfmt
32+
run: shfmt -f .
33+
34+
- name: Run shfmt
35+
run: scripts/shfmt.bash
36+

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: GoogleCloudPlatform/release-please-action@v2
13+
with:
14+
release-type: simple

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shellcheck 0.7.2
2+
shfmt 3.3.0

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
MIT License
3+
4+
Copyright (c) [year] [fullname]
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<div align="center">
2+
3+
# asdf-clang-tools-static [![Build](https://github.com/amrox/asdf-clang-tools-static/actions/workflows/build.yml/badge.svg)](https://github.com/amrox/asdf-clang-tools-static/actions/workflows/build.yml) [![Lint](https://github.com/amrox/asdf-clang-tools-static/actions/workflows/lint.yml/badge.svg)](https://github.com/amrox/asdf-clang-tools-static/actions/workflows/lint.yml)
4+
5+
6+
[clang-tools-static](https://github.com/amrox/clang-tools-static) plugin for the [asdf version manager](https://asdf-vm.com).
7+
8+
</div>
9+
10+
# Contents
11+
12+
- [Dependencies](#dependencies)
13+
- [Install](#install)
14+
- [Why?](#why)
15+
- [Contributing](#contributing)
16+
- [License](#license)
17+
18+
# Dependencies
19+
20+
- `bash`, `curl`, `tar`: generic POSIX utilities.
21+
- `SOME_ENV_VAR`: set this environment variable in your shell config to load the correct version of tool x.
22+
23+
# Install
24+
25+
Plugin:
26+
27+
```shell
28+
asdf plugin add clang-tools-static
29+
# or
30+
asdf plugin add clang-tools-static https://github.com/amrox/asdf-clang-tools-static.git
31+
```
32+
33+
clang-tools-static:
34+
35+
```shell
36+
# Show all installable versions
37+
asdf list-all clang-tools-static
38+
39+
# Install specific version
40+
asdf install clang-tools-static latest
41+
42+
# Set a version globally (on your ~/.tool-versions file)
43+
asdf global clang-tools-static latest
44+
45+
# Now clang-tools-static commands are available
46+
clang-format
47+
```
48+
49+
Check [asdf](https://github.com/asdf-vm/asdf) readme for more instructions on how to
50+
install & manage versions.
51+
52+
# Contributing
53+
54+
Contributions of any kind welcome! See the [contributing guide](contributing.md).
55+
56+
[Thanks goes to these contributors](https://github.com/amrox/asdf-clang-tools-static/graphs/contributors)!
57+
58+
# License
59+
60+
See [LICENSE](LICENSE) © [Andy Mroczkowski](https://github.com/amrox/)

0 commit comments

Comments
 (0)