Add contributor guide and project usage docs
This commit is contained in:
27
src/lazy_enter/config.py
Normal file
27
src/lazy_enter/config.py
Normal file
@@ -0,0 +1,27 @@
|
||||
"""환경 변수 및 설정 관리."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
||||
class Config:
|
||||
"""앱 전체 설정을 담당하는 클래스."""
|
||||
|
||||
# Slack
|
||||
slack_bot_token: str = os.getenv("SLACK_BOT_TOKEN", "")
|
||||
slack_app_token: str = os.getenv("SLACK_APP_TOKEN", "")
|
||||
allowed_user_id: str = os.getenv("SLACK_ALLOWED_USER_ID", "")
|
||||
allowed_channel_id: str = os.getenv("SLACK_ALLOWED_CHANNEL_ID", "")
|
||||
|
||||
# PTY
|
||||
default_shell: str = os.getenv("DEFAULT_SHELL", "claude")
|
||||
pty_read_timeout: int = int(os.getenv("PTY_READ_TIMEOUT", "5"))
|
||||
|
||||
# Buffer
|
||||
output_buffer_interval: float = float(os.getenv("OUTPUT_BUFFER_INTERVAL", "2.0"))
|
||||
max_message_length: int = int(os.getenv("MAX_MESSAGE_LENGTH", "3000"))
|
||||
Reference in New Issue
Block a user