Skip to content

Conversation

@jgarzik
Copy link
Contributor

@jgarzik jgarzik commented Dec 20, 2025

No description provided.

POSIX Compliance Fixes:
  1. -m option - Now accepted as stub (was returning error)
  2. -w option - Now accepted as stub (was returning error)

  Code Cleanup:
  3. -c handling - Removed unused copy_mode parameter from read_input() function. Added comment explaining that copy mode is effectively always-on due to IPP requirements.

  Files Modified:
  - print/lp.rs - Main implementation
  - print/tests/lp/mod.rs - Updated tests
@jgarzik jgarzik requested a review from Copilot December 20, 2025 22:55
@jgarzik jgarzik self-assigned this Dec 20, 2025
@jgarzik jgarzik added the enhancement New feature or request label Dec 20, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a new lp utility for sending files to a printer using the Internet Printing Protocol (IPP). The implementation follows POSIX.2024 compliance and includes comprehensive error handling and test coverage.

  • Implements the core lp command with support for IPP protocol printers
  • Adds command-line options for destination, copies, silent mode, title, and printer-dependent options
  • Includes 8 integration tests covering error cases, environment variable handling, and option parsing

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
print/lp.rs Main implementation of the lp utility with IPP client functionality
print/tests/lp/mod.rs Integration tests for lp utility covering various scenarios and error conditions
print/tests/print-tests.rs Test harness entry point that imports the lp test module
print/Cargo.toml Package configuration with minimal dependencies (ipp, clap, gettext-rs, num-traits)
Cargo.toml Workspace update adding the print crate as a member
Cargo.lock Dependency lock file updates for new IPP-related dependencies
lib/utils.tsv Registry update adding lp to the utilities list
README.md Documentation update marking lp as completed and moving it from misc category

@jgarzik jgarzik merged commit 840b893 into main Dec 21, 2025
4 checks passed
@jgarzik jgarzik deleted the lp branch December 21, 2025 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants