1
Fork 0
mirror of https://github.com/RGBCube/color.v synced 2025-08-01 10:27:45 +00:00

Add format workflow & break some formatting

This commit is contained in:
RGBCube 2022-11-19 19:16:34 +03:00
parent 2be7e9c5ba
commit b70e1bf34a
2 changed files with 32 additions and 2 deletions

30
.github/workflows/format.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Format Code
on:
- pull_request
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set Up V
uses: vlang/setup-v@v1.1
with:
check-latest: true
- name: Format Code
run: v fmt -w .
- name: Push To GitHub
continue-on-error: true
run: |
git pull
git add ./
git commit --amend
git push

View file

@ -12,8 +12,8 @@ __global:
[params]
pub struct BrushParams {
fg ?Color
bg ?Color
fg ?Color
bg ?Color
style []Style
disabled bool
}