mirror of
https://github.com/RGBCube/color.v
synced 2025-07-30 17:37:45 +00:00
Change formatter to verifier workflow
This commit is contained in:
parent
5db1eae976
commit
074af63905
2 changed files with 28 additions and 36 deletions
|
@ -1,4 +1,4 @@
|
|||
name: Format Code
|
||||
name: Verify Formatting
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
|
@ -16,13 +16,5 @@ jobs:
|
|||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- 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
|
||||
- name: Verify That The Code Is Formatted
|
||||
run: v fmt -verify .
|
|
@ -4,33 +4,33 @@ import term
|
|||
|
||||
pub const (
|
||||
// Styles
|
||||
reset = Style(StyleImpl.reset)
|
||||
bold = Style(StyleImpl.bold)
|
||||
dim = Style(StyleImpl.dim)
|
||||
italic = Style(StyleImpl.italic)
|
||||
underline = Style(StyleImpl.underline)
|
||||
slow_blink = Style(StyleImpl.slow_blink)
|
||||
rapid_blink = Style(StyleImpl.rapid_blink)
|
||||
inverse = Style(StyleImpl.inverse)
|
||||
hidden = Style(StyleImpl.hidden)
|
||||
strikethrough = Style(StyleImpl.strikethrough)
|
||||
reset = Style(StyleImpl.reset)
|
||||
bold = Style(StyleImpl.bold)
|
||||
dim = Style(StyleImpl.dim)
|
||||
italic = Style(StyleImpl.italic)
|
||||
underline = Style(StyleImpl.underline)
|
||||
slow_blink = Style(StyleImpl.slow_blink)
|
||||
rapid_blink = Style(StyleImpl.rapid_blink)
|
||||
inverse = Style(StyleImpl.inverse)
|
||||
hidden = Style(StyleImpl.hidden)
|
||||
strikethrough = Style(StyleImpl.strikethrough)
|
||||
// Colors
|
||||
black = Color(BasicColor.black)
|
||||
bright_black = Color(BasicColor.bright_black)
|
||||
red = Color(BasicColor.red)
|
||||
bright_red = Color(BasicColor.bright_red)
|
||||
green = Color(BasicColor.green)
|
||||
bright_green = Color(BasicColor.bright_green)
|
||||
yellow = Color(BasicColor.yellow)
|
||||
bright_yellow = Color(BasicColor.bright_yellow)
|
||||
blue = Color(BasicColor.blue)
|
||||
bright_blue = Color(BasicColor.bright_blue)
|
||||
magenta = Color(BasicColor.magenta)
|
||||
black = Color(BasicColor.black)
|
||||
bright_black = Color(BasicColor.bright_black)
|
||||
red = Color(BasicColor.red)
|
||||
bright_red = Color(BasicColor.bright_red)
|
||||
green = Color(BasicColor.green)
|
||||
bright_green = Color(BasicColor.bright_green)
|
||||
yellow = Color(BasicColor.yellow)
|
||||
bright_yellow = Color(BasicColor.bright_yellow)
|
||||
blue = Color(BasicColor.blue)
|
||||
bright_blue = Color(BasicColor.bright_blue)
|
||||
magenta = Color(BasicColor.magenta)
|
||||
bright_magenta = Color(BasicColor.bright_magenta)
|
||||
cyan = Color(BasicColor.cyan)
|
||||
bright_cyan = Color(BasicColor.bright_cyan)
|
||||
white = Color(BasicColor.white)
|
||||
bright_white = Color(BasicColor.bright_white)
|
||||
cyan = Color(BasicColor.cyan)
|
||||
bright_cyan = Color(BasicColor.bright_cyan)
|
||||
white = Color(BasicColor.white)
|
||||
bright_white = Color(BasicColor.bright_white)
|
||||
)
|
||||
|
||||
const no_color = !term.can_show_color_on_stdout()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue