Skip to content

Document programmatic configuration #262

Closed

Description

@eduard93

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.

Activity

  1. isc-tleavitt commented on Jun 13, 2023

    @isc-tleavitt
    Collaborator

    @eduard93 you could just get a new instance of SourceControl.Git.Settings, set properties of it, and then call %Save().

  2. isc-tleavitt commented on Jun 13, 2023

    @isc-tleavitt
    Collaborator

    That said, we should document how to do that and make it part of the official API (from a semantic versioning perspective).

  3. eduard93 commented on Jun 14, 2023

    @eduard93
    Author

    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.

  4. isc-tleavitt commented on Jun 14, 2023

    @isc-tleavitt
    Collaborator

    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.

  5. self-assigned this
    on Jun 14, 2023
  6. changed the title [-]Non-interactive SourceControl.Git.API:Configure[/-] [+]Document programmatic configuration[/+] on Jun 14, 2023
  7. removed their assignment
    on Oct 22, 2024
  8. self-assigned this
    on Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions