You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add non-interactive alternative to SourceControl.Git.API:Configure, especially SourceControl.Git.Settings:Configure. I want to provide all values in a script.
Would that be enough? I looked at the method generator in SourceControl.Git.Settings:Configure and it looked like it just prompted for values, but I want to be sure.
Activity
isc-tleavitt commentedon Jun 13, 2023
@eduard93 you could just get a new instance of SourceControl.Git.Settings, set properties of it, and then call %Save().
isc-tleavitt commentedon Jun 13, 2023
That said, we should document how to do that and make it part of the official API (from a semantic versioning perspective).
eduard93 commentedon Jun 14, 2023
Would that be enough? I looked at the method generator in
SourceControl.Git.Settings:Configureand it looked like it just prompted for values, but I want to be sure.isc-tleavitt commentedon Jun 14, 2023
It does that and some other interactive things based on what's changed.
Ultimately there are enough settings that the API should be an object anyway, rather than a method with a growing # of parameters.
Leaving this issue open open to flag the class as part of the API and document how to use it.
[-]Non-interactive SourceControl.Git.API:Configure[/-][+]Document programmatic configuration[/+]