From 4dcb5bca4270baf726e7e9d42f6f4f062bcb3589 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 1 Dec 2022 20:15:22 +0300 Subject: [PATCH] Format and rename color/ to src/ --- .github/workflows/format.yml | 2 +- {color => src}/color.v | 1 - {color => src}/constants.v | 2 +- {color => src}/paintbrush.v | 2 +- {color => src}/style.v | 0 5 files changed, 3 insertions(+), 4 deletions(-) rename {color => src}/color.v (99%) rename {color => src}/constants.v (98%) rename {color => src}/paintbrush.v (99%) rename {color => src}/style.v (100%) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index e26a4c8..ec5fb8d 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v3 - name: Format Code - run: v fmt -w . + run: v fmt -w ./ - name: Push To GitHub continue-on-error: true diff --git a/color/color.v b/src/color.v similarity index 99% rename from color/color.v rename to src/color.v index 341b42f..cc47de5 100644 --- a/color/color.v +++ b/src/color.v @@ -2,7 +2,6 @@ module color import term - // Color is a Style extension that also supports rendering in the background. // Every Color is a Style, but not every Style is a Color. pub interface Color { diff --git a/color/constants.v b/src/constants.v similarity index 98% rename from color/constants.v rename to src/constants.v index bf20c17..5f528bc 100644 --- a/color/constants.v +++ b/src/constants.v @@ -2,7 +2,7 @@ module color import term -pub const ( + pub const ( // Colors black = Color(BasicColor.black) red = Color(BasicColor.red) diff --git a/color/paintbrush.v b/src/paintbrush.v similarity index 99% rename from color/paintbrush.v rename to src/paintbrush.v index 364fb39..d85938e 100644 --- a/color/paintbrush.v +++ b/src/paintbrush.v @@ -3,7 +3,7 @@ module color // Brush is the complex Style type that can hold multiple colors and styles. pub interface Brush { Style // Inherits Style methods. - mut: +mut: set_disabled(bool) // Enable/disable the brush. When disabled, the brush doesn't render anything and returns the given string. } diff --git a/color/style.v b/src/style.v similarity index 100% rename from color/style.v rename to src/style.v