Skip to content

Commit

Permalink
fixup! Two-way-sync and exposed config commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jahwag committed Jul 25, 2024
1 parent f26c917 commit 90ab674
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/claudesync/cli/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import click

from ..exceptions import ConfigurationError
from ..utils import handle_errors


Expand All @@ -15,6 +17,10 @@ def config():
@handle_errors
def set(config, key, value):
"""Set a configuration value."""
# Check if the key exists in the configuration
if key not in config.config:
raise ConfigurationError(f"Configuration property '{key}' does not exist.")

# Convert string 'true' and 'false' to boolean
if value.lower() == "true":
value = True
Expand Down

0 comments on commit 90ab674

Please sign in to comment.