Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
leap_cli
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leap
leap_cli
Commits
2cc2648f
Commit
2cc2648f
authored
8 years ago
by
elijah
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: better coloring of log lines that wrap
parent
174dbf38
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/leap_cli/log.rb
+7
-1
7 additions, 1 deletion
lib/leap_cli/log.rb
with
7 additions
and
1 deletion
lib/leap_cli/log.rb
+
7
−
1
View file @
2cc2648f
...
@@ -211,7 +211,13 @@ module LeapCli
...
@@ -211,7 +211,13 @@ module LeapCli
if
style
if
style
codes
<<
EFFECTS
[
style
]
||
EFFECTS
[
:nothing
]
codes
<<
EFFECTS
[
style
]
||
EFFECTS
[
:nothing
]
end
end
if
str
.
is_a?
(
String
)
[
"
\033
[%sm"
%
codes
.
join
(
';'
),
str
,
NO_COLOR
].
join
[
"
\033
[%sm"
%
codes
.
join
(
';'
),
str
,
NO_COLOR
].
join
elsif
str
.
is_a?
(
Array
)
str
.
map
{
|
s
|
[
"
\033
[%sm"
%
codes
.
join
(
';'
),
s
,
NO_COLOR
].
join
}
end
end
end
private
private
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment