Skip to content

cmd: Allow caddy adapt to read from stdin #7163

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

Merged
merged 1 commit into from
Aug 7, 2025

Conversation

bosdhill
Copy link
Contributor

@bosdhill bosdhill commented Aug 6, 2025

Read input from stdin if --config - is passed.

Fix small typo for similar stdin usage message in caddy fmt.

Return same error as 'validate' when there are no args.

Resolves #7162

Read input from stdin if `--config -` is passed.

Fix small typo for similar stdin usage message in `caddy fmt`.

Return same error as 'validate' when there are no args.
@CLAassistant
Copy link

CLAassistant commented Aug 6, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@francislavoie francislavoie left a comment

Choose a reason for hiding this comment

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

Nice!

FYI a nice shortcut is -c- :)

@francislavoie francislavoie merged commit 19ff47a into caddyserver:master Aug 7, 2025
23 checks passed
@francislavoie francislavoie added this to the v2.10.1 milestone Aug 7, 2025
@francislavoie francislavoie added the feature ⚙️ New feature or request label Aug 7, 2025
@bosdhill bosdhill deleted the feature/adapt-stdin branch August 7, 2025 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ⚙️ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

adapt: support for reading from stdin
3 participants