diff --git a/.gitignore b/.gitignore index ec3cabb..743d0bc 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ pubspec.lock # secrets .env + +# docs +doc/ diff --git a/example/example.dart b/example/example.dart index fc0974a..2dcea51 100644 --- a/example/example.dart +++ b/example/example.dart @@ -43,4 +43,3 @@ void main(List args) async { await client.disconnect(); } - diff --git a/lib/src/client.dart b/lib/src/client.dart index ee05f0b..aa7aa32 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -221,4 +221,3 @@ enum ConnectionStatus { /// The client is not connected to the server. disconnected, } - diff --git a/lib/src/color_parser/parser.dart b/lib/src/color_parser/parser.dart index 76bf58b..8e2c463 100644 --- a/lib/src/color_parser/parser.dart +++ b/lib/src/color_parser/parser.dart @@ -6,7 +6,7 @@ import '../consts.dart' as consts; /// /// Can be used to store the text and color information for a single token. /// -/// Use [formatted] to get the ANSI formatted text, usable in a terminal. +/// Use [ColorToken.formatted] to get the ANSI formatted text, usable in a terminal. class ColorToken { /// The raw, uncoded text. String text; @@ -111,7 +111,7 @@ class ColorParser implements IReader { /// Each token represents a piece of text with color information. You can join all the text /// together (without separators) to get the original text, uncolored. /// - /// To get the colored text, use the [formatted] property of each token. + /// To get the colored text, use the [ColorToken.formatted] property of each token. List parse() { final lexed = []; while (!reader.isDone) { @@ -262,4 +262,3 @@ class ColorParser implements IReader { @override setPosition(int position) => index = position; } - diff --git a/lib/src/consts.dart b/lib/src/consts.dart index 83d293a..dbc5fac 100644 --- a/lib/src/consts.dart +++ b/lib/src/consts.dart @@ -7,4 +7,3 @@ const colorPatternRaw = r'\[\d*m'; const boldByte = 1; const italicByte = 3; const underlineByte = 4; - diff --git a/test/color_parser_test.dart b/test/color_parser_test.dart index 97d578d..272942b 100644 --- a/test/color_parser_test.dart +++ b/test/color_parser_test.dart @@ -15,7 +15,10 @@ void main() { final input = inputs[0]; final output = ColorParser(input).parse(); expect(output, [ - ColorToken(text: 'You are standing in a small clearing.', fgColor: 32, bgColor: 0), + ColorToken( + text: 'You are standing in a small clearing.', + fgColor: 32, + bgColor: 0), ColorToken.empty(), ]); }); diff --git a/test/ctelnet_test.dart b/test/ctelnet_test.dart index 7004d56..57f8407 100644 --- a/test/ctelnet_test.dart +++ b/test/ctelnet_test.dart @@ -79,4 +79,3 @@ void main() { expect(client.status, equals(ConnectionStatus.disconnected)); }); } -