cleodora-forecasting / cleodora-forecasting/cleodora

cleoc: Test cobra 'wiring' (parameter precedence, invocation of right subcommand)

Open
#122 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
24
Forks
1
PR merge metrics
No merged PRs in 30d

Description

The same thing also applies to cleosrv, but once it's solved for one it's easy to port to the other.

Right now only `cleoc.App` is being tested. But it also needs to be ensured that when calling a certain (sub-)command the right function is invoked and that parameter precedence works correctly, parameters are parsed etc.

Given that this cobra 'wiring' is rather simple, it's not very urgent. But it is an important part of the user experience, so it needs to work correctly.

Contributor guide

Open the contributing guide

Research direction

Start with cleoc.App and its Cobra command wiring; identify the subcommand invocation and parameter parsing paths, then compare the corresponding cleosrv wiring. Add coverage for parameter precedence, parsed parameters, and dispatch to the correct function, with tests passing for both applications.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, testing-qa
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.