cli, entry, lang: Add an entry package for embeddable CLI's

This adds a new entry package that allows embedded programs to exist
inside of mgmt. This took a lot of refactoring to get the API right, but
I think it's incredibly elegant now. There is a chance we tweak things a
bit, but it's a good first start. All-in-one programs are coming soon!
This commit is contained in:
James Shubin
2024-03-04 22:09:44 -05:00
parent 9527d0dcbd
commit d52c90ede4
5 changed files with 339 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ import (
_ "github.com/purpleidea/mgmt/lang/core/convert"
_ "github.com/purpleidea/mgmt/lang/core/datetime"
_ "github.com/purpleidea/mgmt/lang/core/deploy"
_ "github.com/purpleidea/mgmt/lang/core/embedded"
_ "github.com/purpleidea/mgmt/lang/core/example"
_ "github.com/purpleidea/mgmt/lang/core/example/nested"
_ "github.com/purpleidea/mgmt/lang/core/fmt"