• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mishankov / platforma / 19171578022

07 Nov 2025 02:36PM UTC coverage: 22.952% (+0.4%) from 22.534%
19171578022

push

github

mishankov
Add version flag to CLI

Support both --version and -v flags to display the current version
information from the build metadata.

0 of 6 new or added lines in 2 files covered. (0.0%)

255 of 1111 relevant lines covered (22.95%)

0.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/internal/cli/cli.go
1
package cli
2

3
import "github.com/mishankov/platforma/log"
4

5
func Run(args []string) {
×
6
        command := args[1]
×
7
        switch command {
×
NEW
8
        case "--version", "-v":
×
NEW
9
                versionCommand()
×
10
        case "generate":
×
11
                generateCommand(args[2:])
×
12
        case "docs":
×
13
                docsCommand(args[2:])
×
14
        default:
×
15
                log.Error("unknown command", "command", command)
×
16
        }
17
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc