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

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented Aug 28, 2012

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

This comment has been minimized.

sqlalchemy-bot commented Aug 28, 2012

Michael Bayer (@zzzeek) wrote:

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

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Aug 28, 2012

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

This comment has been minimized.

sqlalchemy-bot commented Sep 30, 2012

Michael Bayer (@zzzeek) wrote:

35ef489

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Sep 30, 2012

Changes by Michael Bayer (@zzzeek):

  • changed status to closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment