Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Configurables
Configurables
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • William Fong
  • ConfigurablesConfigurables
  • Merge Requests
  • !11

Merged
Created Jan 31, 2023 by William Fong@wcfongMaintainer

Pass-Through

  • Overview 0
  • Commits 3
  • Changes 7

This branch allows users to forgo the passing of a configuration file if all the "required" parameters are provided by overrides.

@conf.configurable("Default")
@conf.param("username")
@conf.param("password")
def foo(username, password):
    bar()


foo()  # Raises an error, username and password both are not provided
foo("./credentials.ini")  # Ok if credentials pass both 'username' and 'password' in the '[Default]' section
foo(username="me", password="secret")  # Ok, required parameters are all met.
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: pass-through