Skip to content

Commit

Permalink
WIP: Add generator
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Llorente <[email protected]>
  • Loading branch information
qinqon committed May 9, 2024
1 parent bc7f77f commit 2af997c
Show file tree
Hide file tree
Showing 26 changed files with 11,552 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
Expand All @@ -6,15 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install deps
run: |
#!/bin/bash -e
apt-get update
apt-get install -y make git curl gcc
- name: Install GH CLI
uses: dev-hanz-ops/[email protected]
with:
gh-cli-version: 2.32.0 # optional, see action.yml for current default
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/setup-go@v5
with:
Expand All @@ -24,4 +16,6 @@ jobs:
- name: make lint
run: make lint
- name: make test
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.output
target
.k8s
330 changes: 330 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "nmstate-kubernetes-go-apigen"
edition = "2018"
rust-version = "1.58"
version = "0.0.1"

[[bin]]
name = "nmstate-kubernetes-go-apigen"

[dependencies]
anyhow = "1.0.82"
log = "0.4.21"
env_logger = "0.11.3"
regex = "1.10.2"
clap = { version = "4.5.4", features = ["cargo", "derive"] }
syn = {version = "2.0.39", features = ["visit", "extra-traits", "full"]}
convert_case = "0.6.0"
proc-macro2 = "1.0.56"
Loading

0 comments on commit 2af997c

Please sign in to comment.