-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[more] implementation #373
Conversation
@jgarzik ready for review 🫡 |
.github/workflows/TestingCI.yml
Outdated
@@ -2,6 +2,8 @@ name: Rust | |||
|
|||
on: | |||
push: | |||
branches: | |||
- more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change leaked in from development branch?
This PR should not update TestingCI.yml at all, AFAICS.
.gitignore
Outdated
@@ -1,3 +1,2 @@ | |||
|
|||
target/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR should not update .gitignore at all?
display/more.rs
Outdated
|
||
/// more - display files on a page-by-page basis. | ||
#[derive(Parser)] | ||
#[command(version, about = "more - display files on a page-by-page basis")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The string constant should be wrapped inside a gettext()
call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still needs fixing.
display/more.rs
Outdated
#[command(version, about = "more - display files on a page-by-page basis")] | ||
struct Args { | ||
// Enable interactive session test | ||
#[arg(long = "test", help = "Enable interactive session test.")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto for all help = "xxx"
should be help = gettext("xxx")
@jgarzik fixed. please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there. A few small changes still needed (see review comments).
.github/workflows/TestingCI.yml
Outdated
@@ -44,4 +44,4 @@ jobs: | |||
- name: Build | |||
run: cargo build --release --verbose | |||
- name: Run tests | |||
run: cargo test --release --verbose | |||
run: cargo test --release --verbose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not be touched by this PR.
display/Cargo.toml
Outdated
gettext-rs.workspace = true | ||
libc = { version = "0.2", default-features = false } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be libc.workspace.
display/more.rs
Outdated
|
||
/// more - display files on a page-by-page basis. | ||
#[derive(Parser)] | ||
#[command(version, about = "more - display files on a page-by-page basis")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still needs fixing.
@jgarzik done. please check |
No description provided.