Skip to content

Conversation

@acid-bong
Copy link
Contributor

@acid-bong acid-bong commented May 11, 2025

I only implemented the args for the workflow config path (positional), strict mode (lint-specific) and disabled network-dependent update check (global option; same page, at the top -- the headings don't have anchors). The only args, whose syntax I don't quite understand (yet), are plugin-related ones Already implemented, they are supposed to be comma-separated:

--plugins-privileged="": allow plugins to run in privileged mode, if set empty, there is no (default: [])

--plugins-trusted-clone="": plugins that are trusted to handle Git credentials in cloning steps (default: [docker.io/woodpeckerci/plugin-git:2.6.3 docker.io/woodpeckerci/plugin-git quay.io/woodpeckerci/plugin-git])

The rest of the global flags are network-dependent and require authorization to the necessary Woodpecker server, and the lint subcommand works offline, hence I didn't bother to implement those.

A tip I'd like to ask you for: is woodpecker-cli-lint a good name for the hook? On one hand, it's more accurate that just woodpecker-cli, cuz I'm only implementing one subcommand, and woodpecker-lint, cuz the hook runs specifically woodpecker-cli, and the woodpecker executable (without -cli) is getting deprecated. On the other hand, those two options (or a simple woodpecker) are shorter.

@acid-bong acid-bong marked this pull request as draft May 11, 2025 11:07
@acid-bong acid-bong force-pushed the feat/woodpecker-cli branch from d010a1e to f73b7bb Compare May 12, 2025 05:59
@acid-bong acid-bong marked this pull request as ready for review July 25, 2025 15:53
@sandydoo sandydoo merged commit 029c497 into cachix:master Sep 15, 2025
6 checks passed
@sandydoo sandydoo added enhancement New feature or request new-hook A request for a new hook labels Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request new-hook A request for a new hook

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants