diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 7814f01..cce6093 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -43,6 +43,6 @@ jobs: git config user.name "GitHub Actions" git config user.email "actions@users.noreply.github.com" - git add . + git add ./ git commit -m "Deploy color.v docs" git push git@github.com:RGBCube/rgbcube.github.io master diff --git a/.github/workflows/verify-formatting.yml b/.github/workflows/verify-formatting.yml index 89e8475..feb2fd0 100644 --- a/.github/workflows/verify-formatting.yml +++ b/.github/workflows/verify-formatting.yml @@ -17,4 +17,4 @@ jobs: uses: actions/checkout@v3 - name: Verify That The Code Is Formatted - run: v fmt -verify . + run: v fmt -verify ./ diff --git a/src/tags.v b/src/tags.v new file mode 100644 index 0000000..7b05af7 --- /dev/null +++ b/src/tags.v @@ -0,0 +1,76 @@ +import term + +const start_tags = { + // Reset tag + '': term.format_esc('0') + // Style tags + '': term.format_esc('1') + '': start_tags[''] + '': term.format_esc('2') + '': start_tags[''] + '': term.format_esc('3') + '': start_tags[''] + '': term.format_esc('4') + '
    ': start_tags[''] + '-blink': term.format_esc('5') + '': start_tags[''] + '-blink': term.format_esc('6') + '': start_tags[''] + '': term.format_esc('7') + '': start_tags[''] + '': term.format_esc('8') + '': start_tags[''] + '': term.format_esc('9') + '': start_tags[''] + // Color tags + '': term.format_esc('30') + '': term.format_esc('40') + '': term.format_esc('90') + '': term.format_esc('100') + '': term.format_esc('31') + '': term.format_esc('41') + '': term.format_esc('91') + '': term.format_esc('101') + '': term.format_esc('32') + '': term.format_esc('42') + '': term.format_esc('92') + '': term.format_esc('102') + '': term.format_esc('33') + '': term.format_esc('43') + '': term.format_esc('93') + '': term.format_esc('103') + '': term.format_esc('34') + '': term.format_esc('44') + '': term.format_esc('94') + '': term.format_esc('104') + '': term.format_esc('35') + '': term.format_esc('45') + '': term.format_esc('95') + '': term.format_esc('105') + '': term.format_esc('36') + '': term.format_esc('46') + '': term.format_esc('96') + '': term.format_esc('106') + '': term.format_esc('37') + '': term.format_esc('47') + '': term.format_esc('97') + '': term.format_esc('107') +} + +const end_tags = { + '': term.format_esc('22') + '': end_tags[''] + '': end_tags[''] + '': end_tags[''] +} + +pub fn render(str string) string { +} + +pub fn print(str string) { + print(render(str)) +} + +pub fn println(str string) { + println(render(str)) +}