Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
P
pager-rs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cyril Plisko
pager-rs
Commits
e6b3f1ca
Commit
e6b3f1ca
authored
Dec 11, 2017
by
Cyril Plisko
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop 'Pager::force_on_notty()'
parent
177ddf19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
src/lib.rs
src/lib.rs
+0
-9
tests/pager.rs
tests/pager.rs
+0
-7
No files found.
src/lib.rs
View file @
e6b3f1ca
...
...
@@ -134,15 +134,6 @@ impl Pager {
}
}
/// Instructs `Pager` to force invoking pager even if output is not a `tty`
#[doc(hidden)]
pub
fn
force_on_notty
(
self
)
->
Self
{
Self
{
skip_on_notty
:
false
,
..
self
}
}
/// Gives quick assessment of successful `Pager` setup
pub
fn
is_on
(
&
self
)
->
bool
{
self
.on
...
...
tests/pager.rs
View file @
e6b3f1ca
...
...
@@ -19,10 +19,3 @@ fn skip_on_notty() {
pager
.setup
();
assert
!
(
!
pager
.is_on
());
}
#[test]
fn
force_on_notty
()
{
let
mut
pager
=
Pager
::
new
()
.force_on_notty
();
pager
.setup
();
assert
!
(
pager
.is_on
());
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment