Skip to content

Commit

Permalink
fix: upgrade command
Browse files Browse the repository at this point in the history
Signed-off-by: jahwag <[email protected]>
  • Loading branch information
jahwag committed Dec 21, 2024
1 parent de97de5 commit 2242c4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "claudesync"
version = "0.6.7"
version = "0.6.8"
authors = [
{name = "Jahziah Wagner", email = "[email protected]"},
]
Expand Down
10 changes: 0 additions & 10 deletions src/claudesync/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ def upgrade(ctx):
click.echo(f"Unable to check for the latest version: {str(e)}")
click.echo("Proceeding with the upgrade process.")

session_key = config.get_session_key()
session_key_expiry = config.get("session_key_expiry")

# Upgrade ClaudeSync
click.echo(f"Upgrading ClaudeSync from v{current_version} to v{latest_version}...")
try:
Expand All @@ -88,13 +85,6 @@ def upgrade(ctx):
"Failed to upgrade ClaudeSync. Please try manually: pip install --upgrade claudesync"
)

# Preserve the session key and its expiry
if session_key and session_key_expiry:
config.set_session_key(session_key, session_key_expiry)
click.echo("Session key preserved in the new configuration.")
else:
click.echo("No valid session key found in the old configuration.")

# Inform user about the upgrade process
click.echo("\nUpgrade process completed:")
click.echo(
Expand Down

0 comments on commit 2242c4b

Please sign in to comment.