Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions redisenv/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This layout exists, specifically to make poetry+extras work
def main():
from .commands import (cli, cluster, enterprise, replica, sentinel,
standalone)
from .commands import cli, cluster, enterprise, replica, sentinel, standalone

cli.group(standalone.standalone).add_command(standalone.create)

Expand Down
1 change: 1 addition & 0 deletions redisenv/commands/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def cluster():
)
@click.option(
"--generate-only",
"-g",
help="set, to only generate the configurations, and not run them",
is_flag=True,
default=False,
Expand Down
4 changes: 2 additions & 2 deletions redisenv/commands/enterprise.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from loguru import logger

from ..composer import DockerComposeWrapper
from ..env import (ENTERPRISE_CLUSTER_TYPE, EnterpriseClusterHandler,
_default_options)
from ..env import ENTERPRISE_CLUSTER_TYPE, EnterpriseClusterHandler, _default_options
from ..util import free_ports
from . import defaultenvname

Expand Down Expand Up @@ -75,6 +74,7 @@ def enterprise():
)
@click.option(
"--generate-only",
"-g",
help="set, to only generate the configurations, and not run them",
is_flag=True,
default=False,
Expand Down
1 change: 1 addition & 0 deletions redisenv/commands/replica.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def replica():
)
@click.option(
"--generate-only",
"-g",
help="set, to only generate the configurations, and not run them",
is_flag=True,
default=False,
Expand Down
3 changes: 2 additions & 1 deletion redisenv/commands/sentinel.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


def sentinel():
"""create a redis-sentinel environment"""
"""create a redis-sentinel environment, one redis server and multiple sentinels behind it"""


@click.command()
Expand Down Expand Up @@ -88,6 +88,7 @@ def sentinel():
)
@click.option(
"--generate-only",
"-g",
help="set, to only generate the configurations, and not run them",
is_flag=True,
default=False,
Expand Down
1 change: 1 addition & 0 deletions redisenv/commands/standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def standalone():
)
@click.option(
"--generate-only",
"-g",
help="set, to only generate the configurations, and not run them",
is_flag=True,
default=False,
Expand Down
2 changes: 1 addition & 1 deletion redisenv/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(
os.makedirs(self.envconfigdir, exist_ok=True)
if disable_logging:
logger.disable("redisenv")

def listenvs(self):
"""List the environments"""

Expand Down