Skip to content

ioc cli parameters are very inconsistent #6

Open
@igalic

Description

@igalic

for reasons of backwards compatibility, we've made ioc's command line interface as inconsistent as its predecessors'.

currently we have three formats, which mostly differ where the <jail>, that is being operated on is placed, and how it's passed.

  1. via the --name option:

    ioc create --name <jail>
  2. as first (and only parameter)

    ioc start <jail>
  3. as first parameter of infinitely many:

    ioc exec <jail> cat /etc/passwd
  4. as last parameter of infinitely many:

    ioc set ip4_addr='vtnet0|172.16.0.9/12' template=no <jail>

i propose standardizing on one format.
if we want to provide backwards compatibility, we should do this shims that our users can install themselves in place of the iocace_legacy (/usr/local/sbin/iocage) or iocage (/usr/local/bin/iocage) binaries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    designDesign Workhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions