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

Make CLI more extensible #70

Closed
sqlalchemy-bot opened this issue Aug 28, 2012 · 4 comments
Closed

Make CLI more extensible #70

sqlalchemy-bot opened this issue Aug 28, 2012 · 4 comments
Labels
bug Something isn't working

Comments

@sqlalchemy-bot
Copy link

Migrated issue, originally created by MichaelE (@miracle2k)

I'd like to integrate alembic into a larger CMS-like system. For this, the fact that config.main requires either that the user specify a ini file, or that such a file exist in the current directory, is not very helpful. I need to duplicate the entirety of config.main to get rid of this.

I want to propose a patch which separates the command line parsing from the actual execution, such that a custom config object can be used.

It would be even better if a config option could be passed to the CLI code, and if so, the -c option is simply removed, but the rest works as-is.

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

here's a patch you can try: http://pastebin.com/96yKL7vD

@sqlalchemy-bot
Copy link
Author

MichaelE (@miracle2k) wrote:

config_file isn't used in _generate_args(), but other than that, this is pretty much what I imagined. Thanks.

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

35ef489

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • changed status to closed

@sqlalchemy-bot sqlalchemy-bot added the bug Something isn't working label Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant