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

[hab] Update hab rumor inject to hab config apply. #419

Merged
merged 1 commit into from
Apr 21, 2016

Conversation

fnichol
Copy link
Collaborator

@fnichol fnichol commented Apr 21, 2016

This change also renames the subcommand alias inject to apply.

> hab --help
hab 0.4.0

Authors: The Habitat Maintainers <[email protected]>

"A Habitat is the natural environment for your services" - Alan Turing

USAGE:
    hab [FLAGS] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    artifact    Commands relating to Habitat artifacts
    config      Commands relating to Habitat runtime config
    help        Prints this message or the help message of the given subcommand(s)
    origin      Commands relating to Habitat origin keys
    pkg         Commands relating to Habitat packages
    service     Commands relating to Habitat services
    sup         Commands relating to the Habitat Supervisor
    user        Commands relating to Habitat users

ALIASES:
    apply       Alias for: 'config apply'
    install     Alias for: 'pkg install'
    start       Alias for: 'sup start'

> hab config --help
hab-config
Commands relating to Habitat runtime config

USAGE:
    hab config [FLAGS] [SUBCOMMAND]

FLAGS:
    -h, --help    Prints help information

SUBCOMMANDS:
    apply    Applies a configuration to a group of Habitat Supervisors
    help     Prints this message or the help message of the given subcommand(s)

> hab apply --help
hab-apply
Alias for 'config apply'

USAGE:
    hab apply [FLAGS] [OPTIONS] <SERVICE_GROUP> <VERSION_NUMBER> [ARGS]

FLAGS:
    -h, --help    Prints help information

OPTIONS:
    -p, --peers <PEERS>    A comma-delimited list of one or more Habitat Supervisor peers to infect (default: 127.0.0.1:9634)

ARGS:
    <SERVICE_GROUP>     Target service group for this injection (ex: redis.default)
    <VERSION_NUMBER>    A version number (integer) for this configuration (ex: 42)
    [FILE]              Path to local file on disk (ex: /tmp/config.toml, default: <stdin>)

> hab apply --help
hab-apply
Alias for 'config apply'

USAGE:
    hab apply [FLAGS] [OPTIONS] <SERVICE_GROUP> <VERSION_NUMBER> [ARGS]

FLAGS:
    -h, --help    Prints help information

OPTIONS:
    -p, --peers <PEERS>    A comma-delimited list of one or more Habitat Supervisor peers to infect (default: 127.0.0.1:9634)

ARGS:
    <SERVICE_GROUP>     Target service group for this injection (ex: redis.default)
    <VERSION_NUMBER>    A version number (integer) for this configuration (ex: 42)
    [FILE]              Path to local file on disk (ex: /tmp/config.toml, default: <stdin>)

This change also renames the subcommand alias `inject` to `apply`.

```
> hab --help
hab 0.4.0

Authors: The Habitat Maintainers <[email protected]>

"A Habitat is the natural environment for your services" - Alan Turing

USAGE:
    hab [FLAGS] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    artifact    Commands relating to Habitat artifacts
    config      Commands relating to Habitat runtime config
    help        Prints this message or the help message of the given subcommand(s)
    origin      Commands relating to Habitat origin keys
    pkg         Commands relating to Habitat packages
    service     Commands relating to Habitat services
    sup         Commands relating to the Habitat Supervisor
    user        Commands relating to Habitat users

ALIASES:
    apply       Alias for: 'config apply'
    install     Alias for: 'pkg install'
    start       Alias for: 'sup start'

> hab config --help
hab-config
Commands relating to Habitat runtime config

USAGE:
    hab config [FLAGS] [SUBCOMMAND]

FLAGS:
    -h, --help    Prints help information

SUBCOMMANDS:
    apply    Applies a configuration to a group of Habitat Supervisors
    help     Prints this message or the help message of the given subcommand(s)

> hab apply --help
hab-apply
Alias for 'config apply'

USAGE:
    hab apply [FLAGS] [OPTIONS] <SERVICE_GROUP> <VERSION_NUMBER> [ARGS]

FLAGS:
    -h, --help    Prints help information

OPTIONS:
    -p, --peers <PEERS>    A comma-delimited list of one or more Habitat Supervisor peers to infect (default: 127.0.0.1:9634)

ARGS:
    <SERVICE_GROUP>     Target service group for this injection (ex: redis.default)
    <VERSION_NUMBER>    A version number (integer) for this configuration (ex: 42)
    [FILE]              Path to local file on disk (ex: /tmp/config.toml, default: <stdin>)

> hab apply --help
hab-apply
Alias for 'config apply'

USAGE:
    hab apply [FLAGS] [OPTIONS] <SERVICE_GROUP> <VERSION_NUMBER> [ARGS]

FLAGS:
    -h, --help    Prints help information

OPTIONS:
    -p, --peers <PEERS>    A comma-delimited list of one or more Habitat Supervisor peers to infect (default: 127.0.0.1:9634)

ARGS:
    <SERVICE_GROUP>     Target service group for this injection (ex: redis.default)
    <VERSION_NUMBER>    A version number (integer) for this configuration (ex: 42)
    [FILE]              Path to local file on disk (ex: /tmp/config.toml, default: <stdin>)
```
@thesentinels
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @metadave to be a potential reviewer

@bookshelfdave
Copy link
Contributor

looks good!

gif-keyboard-15658965871748105837

@bookshelfdave bookshelfdave merged commit 48b7865 into master Apr 21, 2016
@bookshelfdave bookshelfdave deleted the fnichol/hab-config-apply branch April 21, 2016 21:15
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.

3 participants