Skip to content

fix: enumerated values, trend messages, --max-size, --target answers, escaped device strings, --password-file (v0.9.0) - #24

Merged
boeboe merged 1 commit into
mainfrom
fix/policy-1.6-review
Nov 15, 2026
Merged

boeboe merged 1 commit into
mainfrom
fix/policy-1.6-review

Conversation

@boeboe

@boeboe boeboe commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Implements the policy 1.6 review of bacnetctl.

  • Enumerated values bacnetctl has no name for are written as their number by every command and on every platform (internal/bac/enums.go).
  • trend: the message of an event log record is converted from its character set, as events does (internal/bac/trend.go).
  • file get --max-size is computed in 64 bits, so values above 2147483647 work on 32-bit platforms (internal/bac/file.go).
  • discover, whohas and router list with --target list only the answers from the target's address (internal/bac/discover.go, internal/bac/network.go). A target that does not answer gives the documented empty result.
  • Text and table output write the control and bidirectional characters of device strings as escapes; JSON is unchanged (internal/types/terminal.go, value.go, results.go).
  • --password-file, BACNETCTL_PASSWORD_FILE and BACNETCTL_SERVER_PASSWORD_FILE; --password still works, is marked deprecated in --help and warns on stderr (cmd/password.go, cmd/manage.go, cmd/server.go).
  • CI: tests on linux/386 and make e2e (.github/workflows/ci.yml).
  • README documents how numbers are read today in flags, variables and values; no change to parsing.

Docs: README, SECURITY.md, CONTRIBUTING.md, docs/exitcodes.md, docs/json-output.md, RELEASE.md (v0.9.0).

Tests: cmd/enumrange_test.go, cmd/filesize_test.go, cmd/target_test.go, cmd/peerstrings_test.go, cmd/password_test.go, internal/bac/enumrange_test.go, internal/bac/trendmessage_test.go, internal/types/terminal_test.go. Exit codes and JSON output are unchanged.

🤖 Generated with Claude Code

… escaped device strings, --password-file (v0.9.0)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.73418% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/bac/discover.go 90.00% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@boeboe
boeboe merged commit 9f62b46 into main Nov 15, 2026
17 checks passed
@boeboe
boeboe deleted the fix/policy-1.6-review branch November 15, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant