Open noaabarki opened 2 years ago
Do we have to just paste this code
Hey @noaabarki I’d be interested in taking this on
Hi @laneia! That's amazing, you got it :)
Will this cause us to override the flags without the ability to change it via the cli?
To be more specific, I will be able to manually add schema-version
flag to config.yaml
but will not have the ability to use the cli to override it using datree config set schema-version
Or even check what is set using datree config get schema-version
Will this cause us to override the flags without the ability to change it via the cli?
To be more specific, I will be able to manually add
schema-version
flag toconfig.yaml
but will not have the ability to use the cli to override it usingdatree config set schema-version
Or even check what is set usingdatree config get schema-version
As with most tools, I think we want the inline flags to merge & override the flags from config.yaml
@noaabarki I would like to work on this issue :)
You are the best! 🥳 It's yours.
Hey @noaabarki, didn't have much time to work on this task in the past few weeks :(
Wanted to get it done within the day that I was assigned but got a bit stuck, will try to get it done this week.
@noaabarki is anyone working on this issue?
@amustaque97 Nope, feel free to give it a shot :)
@noaabarki is there anyone working on this issue? I would like to work on this : )
@Abhi-y2003 go for it!
Describe the solution you'd like
Read all test command’s flags from both command and the config file(
~/.datree/config.yaml
). The main feature is to allow users to set permanent yet custom flags in their config local settings.“How to implementation” Suggestion
TestCommandFlags
(wrapTestCommandFlags
inTestCommandOptions
as you see best).localConfig.GetLocalConfiguration()
to return all the options from./config.yaml
file.Use
GetLocalConfiguration()
outside the scope of Cobra’s commandRunE
and initiate flags with local config. Eventually, the outcome should be something likeRequirements Golang basic level.