Skip to content

Commit 519a09d

Browse files
committed
feat: inital commit
1 parent 4694a58 commit 519a09d

6 files changed

Lines changed: 75 additions & 0 deletions

File tree

.github/workflows/verify.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
# Verifies all tests pass
11+
verify:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
permissions:
15+
contents: read
16+
issues: read
17+
checks: write
18+
pull-requests: write
19+
steps:
20+
- uses: actions/checkout@v6
21+
with:
22+
fetch-depth: 0 # Fetch the whole history and tags.
23+
- uses: dtolnay/rust-toolchain@stable
24+
with:
25+
components: clippy, rustfmt
26+
- uses: Swatinem/rust-cache@v2
27+
28+
- name: install just
29+
uses: rezi-labs/install-just@main
30+
31+
- run: just verify

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ target
1919
# and can be added to the global gitignore or merged into this file. For a more nuclear
2020
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
2121
#.idea/
22+
23+
24+
# Added by cargo
25+
26+
/target

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package]
2+
name = "cli"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]

justfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
3+
install:
4+
cargo install --path .
5+
6+
run *args:
7+
cargo run {{args}}
8+
9+
watch:
10+
cargo watch -x run
11+
12+
verify: lint test
13+
14+
test:
15+
cargo test
16+
17+
lint:
18+
cargo fmt --all -- --check
19+
cargo clippy
20+
21+
fmt:
22+
cargo fmt
23+
cargo fix --allow-dirty --allow-stageds

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
}

0 commit comments

Comments
 (0)