cli, gapi: empty, lang, yaml: Refactor the args structs

Put these datastructures into an external package so they can be re-used
for parsing elsewhere.

Since we remove these dependencies, we need to manually import the
GAPI's so that they register. Despite efforts to embed them deeper into
the import tree without cycles, this failed. Logically what this told me
is that it actually makes sense to allow a different binary with only
one of the multiple GAPI's contained within.
This commit is contained in:
James Shubin
2024-03-03 17:17:21 -05:00
parent d537c3d523
commit 601fcf40c4
7 changed files with 45 additions and 46 deletions

View File

@@ -34,9 +34,6 @@ func init() {
gapi.Register(Name, func() gapi.GAPI { return &GAPI{} }) // register
}
// Args is the CLI parsing structure and type of the parsed result.
type Args struct{}
// GAPI implements the main lang GAPI interface.
type GAPI struct {
data *gapi.Data