mirror of
https://github.com/docker/compose.git
synced 2025-07-23 05:34:36 +02:00
Merge pull request #1442 from aanand/dashes-in-migration-command
Rename migrate_to_labels -> migrate-to-labels
This commit is contained in:
commit
e538923545
@ -33,6 +33,8 @@ class DocoptCommand(object):
|
|||||||
if command is None:
|
if command is None:
|
||||||
raise SystemExit(getdoc(self))
|
raise SystemExit(getdoc(self))
|
||||||
|
|
||||||
|
command = command.replace('-', '_')
|
||||||
|
|
||||||
if not hasattr(self, command):
|
if not hasattr(self, command):
|
||||||
raise NoSuchCommand(command, self)
|
raise NoSuchCommand(command, self)
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ class TopLevelCommand(Command):
|
|||||||
start Start services
|
start Start services
|
||||||
stop Stop services
|
stop Stop services
|
||||||
up Create and start containers
|
up Create and start containers
|
||||||
migrate_to_labels Recreate containers to add labels
|
migrate-to-labels Recreate containers to add labels
|
||||||
|
|
||||||
"""
|
"""
|
||||||
def docopt_options(self):
|
def docopt_options(self):
|
||||||
@ -493,7 +493,7 @@ class TopLevelCommand(Command):
|
|||||||
"""
|
"""
|
||||||
Recreate containers to add labels
|
Recreate containers to add labels
|
||||||
|
|
||||||
Usage: migrate_to_labels
|
Usage: migrate-to-labels
|
||||||
"""
|
"""
|
||||||
migration.migrate_project_to_labels(project)
|
migration.migrate_project_to_labels(project)
|
||||||
|
|
||||||
|
@ -789,7 +789,7 @@ def check_for_legacy_containers(
|
|||||||
"labels. As of compose 1.3.0 containers are identified with "
|
"labels. As of compose 1.3.0 containers are identified with "
|
||||||
"labels instead of naming convention. If you'd like compose "
|
"labels instead of naming convention. If you'd like compose "
|
||||||
"to use this container, please run "
|
"to use this container, please run "
|
||||||
"`docker-compose migrate_to_labels`" % (name,))
|
"`docker-compose migrate-to-labels`" % (name,))
|
||||||
|
|
||||||
|
|
||||||
def parse_restart_spec(restart_config):
|
def parse_restart_spec(restart_config):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user