Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.2.8 #41

Merged
merged 6 commits into from
Feb 20, 2025
Merged

Version 1.2.8 #41

merged 6 commits into from
Feb 20, 2025

Conversation

endernoke
Copy link
Collaborator

@endernoke endernoke commented Feb 20, 2025

This PR mainly unifies the configurations across the app to Config class.
It also introduces minor new commands.

New Commands

  • instagram config --reset: reset all configurations to default.
  • instagram auth switch-account <username>: Convenience command for switching between different logged-in accounts (so the user doesn't have to type instagram config --set login.current_username <username>). The first command also performs basic input validation.

Code Changes

  • instagram.configs.Config is reimplemented as a singleton class. Example usage is as follows:
    # No need to create a new Config instance
    Config().get("chat.layout")  # e.g. returns 'compact'
    Config().set("login.default_username", "george")  # The updated value will be immediately available in the next call to Config() from any interface 
    

@endernoke endernoke merged commit b155bf0 into main Feb 20, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant