-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replaces .env with config.toml #2
Conversation
also removes config.toml automatic editing
This looks fine but the envFile branch in the OGREE-CLI already includes this with the changes to use environment variables |
…s also fixes flag parsing bug in config.go
There was a flag parsing bug here so this was fixed. The JSON library was used here for the decoding into conf struct since this is better than a manual written solution. repl.go was refactored and now main.go has the init section |
CLI/config/config.go
Outdated
|
||
type Vardef struct { | ||
Name string | ||
Value string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Value should be an interface{} type, if we want to pass numerical variables etc
* feat(api) replace - by _ To be uniform with collections and category fields * feat(api) implement virtual objs * fix(back) force remove network on delete tenant * feat(cli) add virtual objs * feat(app) add virtual objs * feat(app) add translations * fix(cli) replace - by _ * fix(cli) replace - by _ * fix(api) get phierarchy with vobj * fix(api) vobj always with tags * feat(cli) add layers to virtual * feat(api) adjustments for virtual * fix(cli) tests * fix(api) tests * refactor(api) simplify validateParent * refactor(cli) simplify name change on virtual root * refactor(cli) simplify layer FromObjects * refactor(cli) simplify update vlinks * feat(cli) add +vobj tests * feat(cli) add vlink update test * feat(cli) test ls vobj * feat(api) update test and doc * refactor(api) improve Cognitive Complexity * fix(api) fix tests
* feat(api) replace - by _ To be uniform with collections and category fields * feat(api) implement virtual objs * fix(back) force remove network on delete tenant * feat(cli) add virtual objs * feat(app) add virtual objs * feat(app) add translations * fix(cli) replace - by _ * fix(cli) replace - by _ * fix(api) get phierarchy with vobj * fix(api) vobj always with tags * feat(cli) add layers to virtual * feat(api) adjustments for virtual * fix(cli) tests * fix(api) tests * refactor(api) simplify validateParent * refactor(cli) simplify name change on virtual root * refactor(cli) simplify layer FromObjects * refactor(cli) simplify update vlinks * feat(cli) add +vobj tests * feat(cli) add vlink update test * feat(cli) test ls vobj * feat(api) update test and doc * refactor(api) improve Cognitive Complexity * fix(api) fix tests * Feat476 virtual objects (#2) * feat(api) replace - by _ To be uniform with collections and category fields * feat(api) implement virtual objs * fix(back) force remove network on delete tenant * feat(cli) add virtual objs * feat(app) add virtual objs * feat(app) add translations * fix(cli) replace - by _ * fix(cli) replace - by _ * fix(api) get phierarchy with vobj * fix(api) vobj always with tags * feat(cli) add layers to virtual * feat(api) adjustments for virtual * fix(cli) tests * fix(api) tests * refactor(api) simplify validateParent * refactor(cli) simplify name change on virtual root * refactor(cli) simplify layer FromObjects * refactor(cli) simplify update vlinks * feat(cli) add +vobj tests * feat(cli) add vlink update test * feat(cli) test ls vobj * feat(api) update test and doc * refactor(api) improve Cognitive Complexity * fix(api) fix tests * refactor(api) improve Cognitive Complexity * fix(api) remove duplicate * feat(cli,api) nodes on both namespaces * feat(app) add graph view * feat(app) add graph view * feat(api) update readme * feat(app) add complex filter
The lsog command still tries to read .env, but ziad is fixing it on another branch so I ll just rebase this one once it is done.
Thus the PR should not be merged for now but can already be reviewed.