mirror of
https://github.com/dlt-hub/dlt.git
synced 2025-12-17 19:31:30 +00:00
add runtime CLI configs in WorkspaceRuntimeConfiguration (#3424)
* add runtime CLI configs in WorkspaceRuntimeConfiguration * set default URLs to None --------- Co-authored-by: ivasio <ivan@dlthub.com>
This commit is contained in:
@@ -2,6 +2,7 @@ from typing import ClassVar, Optional, Sequence
|
||||
from dlt.common.configuration.specs import known_sections
|
||||
from dlt.common.configuration.specs.base_configuration import BaseConfiguration, configspec
|
||||
from dlt.common.configuration.specs.runtime_configuration import RuntimeConfiguration
|
||||
from dlt.common.typing import TSecretStrValue
|
||||
|
||||
|
||||
@configspec
|
||||
@@ -21,8 +22,14 @@ class WorkspaceSettings(BaseConfiguration):
|
||||
class WorkspaceRuntimeConfiguration(RuntimeConfiguration):
|
||||
"""Extends runtime configuration with dlthub runtime"""
|
||||
|
||||
# TODO: connect workspace to runtime here
|
||||
# TODO: optionally define scripts and other runtime settings
|
||||
workspace_id: Optional[str] = None
|
||||
"""Id of the remote workspace that local one should be connected to"""
|
||||
auth_token: Optional[TSecretStrValue] = None
|
||||
"""JWT token for Runtime API"""
|
||||
auth_base_url: Optional[str] = None
|
||||
"""Base URL for the dltHub Runtime authentication API"""
|
||||
api_base_url: Optional[str] = None
|
||||
"""Base URL for the dltHub Runtime API"""
|
||||
|
||||
|
||||
@configspec
|
||||
|
||||
Reference in New Issue
Block a user