@@ -11,32 +11,54 @@ namespace CodeOfChaos.CliArgsParser.Library.Shared;
11
11
public static class ConsoleTextStore {
12
12
private static AnsiStringBuilder Builder { get ; } = new ( ) ;
13
13
14
- public static string BumpingVersion => Builder . Fore . AppendWhitesmoke ( "Bumping version ..." ) . ToStringAndClear ( ) ;
15
- public static string GitCommitting => Builder . Fore . AppendWhitesmoke ( "Git committing ..." ) . ToStringAndClear ( ) ;
16
- public static string GitTagging => Builder . Fore . AppendWhitesmoke ( "Git tagging ..." ) . ToStringAndClear ( ) ;
17
- public static string GitPushingToRemote => Builder . Fore . AppendWhitesmoke ( "Pushing to origin ..." ) . ToStringAndClear ( ) ;
18
- public static string QuestionTagAndCommit => Builder . WithFore ( f => f
14
+ public static string BumpingVersion => Builder . Fore
15
+ . AppendWhitesmoke ( "Defining and Bumping version " )
16
+ . AppendSlategray ( "..." )
17
+ . ToStringAndClear ( ) ;
18
+
19
+ public static string GitCommitting => Builder . Fore
20
+ . AppendWhitesmoke ( "Git committing " )
21
+ . AppendSlategray ( "..." )
22
+ . ToStringAndClear ( ) ;
23
+
24
+ public static string GitTagging => Builder . Fore
25
+ . AppendWhitesmoke ( "Git tagging " )
26
+ . AppendSlategray ( "..." )
27
+ . ToStringAndClear ( ) ;
28
+
29
+ public static string GitPushingToRemote => Builder . Fore
30
+ . AppendWhitesmoke ( "Pushing to origin " )
31
+ . AppendSlategray ( "..." )
32
+ . ToStringAndClear ( ) ;
33
+
34
+ public static string QuestionTagAndCommit => Builder
35
+ . WithFore ( f => f
19
36
. AppendWhitesmoke ( "Do you want to Git tag & push to origin?" )
20
37
. AppendSlategray ( " (y/n)" )
21
38
) . ToStringAndClear ( ) ;
22
39
23
- public static string CommandEndSuccess ( ) => Builder . Fore . AppendGreen ( "Command completed successfully." ) . ToStringAndClear ( ) ;
24
- public static string CommandEndFailure ( string ? failure ) => Builder . Fore . WithFore ( f => {
25
- f . AppendMaroon ( "Command failed" ) ;
26
- if ( failure is not null ) f . AppendMaroon ( " : " ) . AppendWhitesmoke ( failure ) ;
27
- }
28
- ) . ToStringAndClear ( ) ;
40
+ public static string CommandEndSuccess ( ) => Builder . Fore
41
+ . AppendGreen ( "Command completed successfully." )
42
+ . ToStringAndClear ( ) ;
43
+
44
+ public static string CommandEndFailure ( string ? failure ) => Builder . Fore
45
+ . WithFore ( f => {
46
+ f . AppendCrimson ( "Command failed" ) ;
47
+ if ( failure is not null ) f . AppendCrimson ( " : " ) . AppendWhitesmoke ( failure ) ;
48
+ } ) . ToStringAndClear ( ) ;
29
49
30
- public static string TagSuccessful ( SemanticVersionDto versionDto ) => Builder . WithFore ( f => f
31
- . AppendWhitesmoke ( "Version " )
32
- . AppendDeepskyblue ( versionDto . ToString ( ) )
33
- . AppendWhitesmoke ( " successfully git tagged and committed." )
34
- ) . ToStringAndClear ( ) ;
50
+ public static string TagSuccessful ( SemanticVersionDto versionDto ) => Builder
51
+ . WithFore ( f => f
52
+ . AppendWhitesmoke ( "Version " )
53
+ . AppendDeepskyblue ( versionDto . ToString ( ) )
54
+ . AppendWhitesmoke ( " successfully git tagged and committed." )
55
+ ) . ToStringAndClear ( ) ;
35
56
36
- public static string UpdatedVersion ( string projectName , string versionElement ) => Builder . WithFore ( f => f
37
- . AppendWhitesmoke ( "Updated version of package " )
38
- . AppendDeepskyblue ( projectName )
39
- . AppendWhitesmoke ( " to " )
40
- . AppendDeepskyblue ( versionElement )
41
- ) . ToStringAndClear ( ) ;
57
+ public static string UpdatedVersion ( string projectName , string versionElement ) => Builder
58
+ . WithFore ( f => f
59
+ . AppendWhitesmoke ( "Updated version of package " )
60
+ . AppendDeepskyblue ( projectName )
61
+ . AppendWhitesmoke ( " to " )
62
+ . AppendDeepskyblue ( versionElement )
63
+ ) . ToStringAndClear ( ) ;
42
64
}
0 commit comments