sww: the three commands as cobra commands (closes #440) #460
Open
clawbot
wants to merge 2 commits from
issue-440-cobra-commands into next
pull from: issue-440-cobra-commands
merge into: sneak:next
sneak:main
sneak:issue-447-config-above-the-parts
sneak:issue-441-heuristic-structs
sneak:next
sneak:issue-450-constructor-params
sneak:issue-451-rproxy-tests-under-load
sneak:issue-445-after-answer-statements
sneak:issue-448-config-setting-name-constants
sneak:issue-444-one-ban-method
sneak:issue-454-crs-test-load-timeout
sneak:issue-430-app-fixes-directory
sneak:issue-438-metrics-params
sneak:issue-426-chi-routes
sneak:issue-425-wafprotocol-package
sneak:issue-428-named-value-types
sneak:issue-439-stop-asks-at-stop
sneak:issue-429-dirwatch
sneak:issue-436-server-exports-no-parts
sneak:issue-434-core-rule-set-in-sww
sneak:issue-431-body-wrapper-fields
sneak:issue-433-report-goroutines
sneak:issue-427-typed-fixed-value-settings
sneak:issue-411-abuseipdb-blacklist
sneak:issue-414-fx-wiring
sneak:issue-420-tests-under-load
sneak:issue-381-compose-waf-settings
sneak:issue-412-anomaly-alert-only
sneak:issue-418-test-time-limits
sneak:issue-415-header-limit-test
sneak:issue-406-parallel-tests
sneak:issue-405-decide-beside-lookup
sneak:issue-404-geojs-package
sneak:issue-401-one-cookie-line
sneak:issue-400-coreruleset-timing-ref
sneak:issue-398-breaker-test-without-questions
sneak:issue-400-coreruleset-timing
sneak:issue-396-no-own-hosts
sneak:issue-394-decide-in-time
sneak:issue-392-rproxy-circuit-breaker
sneak:issue-388-any-tls-proxy
sneak:issue-386-readme-rproxy-alone
sneak:issue-387-readme-scraper-policy
sneak:issue-339-long-line-limits
sneak:issue-379-lookup-headers-by-default
sneak:issue-315-remove-crowdsec
sneak:issue-354-package-registry-searches
sneak:issue-353-api-searches
sneak:issue-234-rename-settings
sneak:issue-359-ghost-remaining-fields
sneak:issue-373-read-rest-after-connection-close
sneak:issue-374-ghost-canonical-url
sneak:issue-371-body-over-limit-test-reset
sneak:issue-358-ghost-scripts
sneak:issue-211-viper-config
sneak:issue-357-ghost
sneak:issue-346-names-in-bodies
sneak:issue-365-adopt-form-repository-names
sneak:issue-220-apps-by-hostname
sneak:issue-352-shared-searches
sneak:issue-215-golines
sneak:issue-227-settings-file-per-daemon
sneak:issue-350-forgejo-searches
sneak:issue-349-gitea-user-page-ls
sneak:issue-287-crs-test-cpu
sneak:issue-284-wordpress-recorded-both-ways
sneak:readme-rewrite-155
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
d17f72d1ef |
sww: healthcheck refuses flag arguments itself
check / check (push) Waiting to run
cobra parsed flags for `sww healthcheck`, so `--x` exited 2 with cobra's error and `-h` printed help and exited 0, where the issue keeps HealthCheck's own message and status 1 for any argument. The command now passes every argument to HealthCheck. Model: opus-5-5 |
||
|
|
504515c1d1 |
sww: the three commands as cobra commands (closes #440)
check / check (push) Waiting to run
Main builds a cobra root command with rproxy, waf and healthcheck under it, in place of the switch on os.Args and the hand-kept usage text. Exit statuses stay: 2 with no command or an unknown one, otherwise what the command returns. cobra's completion command is off. `sww help` and `sww --help` now print the commands and exit 0. Model: opus-5-5 |