Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-1441

fabric:export uses the same flag -p for 2 different options

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • M1, jboss-fuse-6.2
    • jboss-fuse-6.1
    • None
    • None
    • % %
    • Hide

      run fabric:export --help

      returns

      JBossFuse:admin@root> fabric:export --help
      DESCRIPTION
              fabric:export
      
      	Export the contents of the fabric registry to the specified directory in the filesystem
      
      SYNTAX
              fabric:export [options] [target] 
      
      ARGUMENTS
              target
                      Path of the directory to export to
                      (defaults to /opt/rh/jboss-fuse-6.1.0.redhat-379/fabric/export)
      
      OPTIONS
              -f, --regex
                      Specifies a regular expression that matches the znode paths you want to include in the export. For multiple include expressions, specify this option multiple times. The regular 
                      expression syntax is defined by the java.util.regex package.
              -d, --delete
                      Delete the existing contents of the target directory before exporting. CAUTION: Performs a recursive delete! 
              --dry-run
                      Log the actions that would be performed during an export, but do not actually perform the export.
              -v, --version
                      Export the specified version
              -p, --profile
                      Export the specified profile
              -t, --trim
                      Trims the first timestamp comment line in properties files starting with the '#' character
              --help
                      Display this help message
              -p, --path
                      Top level znode to export
                      (defaults to /)
              -rf, --reverse-regex
                      Specifies a regular expression that matches the znode paths you want to exclude from the export. For multiple exclude expressions, specify this option multiple times. The 
                      regular expression syntax is defined by the java.util.regex package.
      
      DETAILS
              The regular expression options, -f and -rf, provide you with considerable flexibility for specifying which parts of the fabric registry to export. For example, to export every version 
              of the default profile's data, you could use a command like the following:
      ...
      
      Show
      run fabric:export --help returns JBossFuse:admin@root> fabric:export --help DESCRIPTION fabric:export Export the contents of the fabric registry to the specified directory in the filesystem SYNTAX fabric:export [options] [target] ARGUMENTS target Path of the directory to export to (defaults to /opt/rh/jboss-fuse-6.1.0.redhat-379/fabric/export) OPTIONS -f, --regex Specifies a regular expression that matches the znode paths you want to include in the export. For multiple include expressions, specify this option multiple times. The regular expression syntax is defined by the java.util.regex package . -d, --delete Delete the existing contents of the target directory before exporting. CAUTION: Performs a recursive delete! --dry-run Log the actions that would be performed during an export, but do not actually perform the export. -v, --version Export the specified version -p, --profile Export the specified profile -t, --trim Trims the first timestamp comment line in properties files starting with the '#' character --help Display this help message -p, --path Top level znode to export (defaults to /) -rf, --reverse-regex Specifies a regular expression that matches the znode paths you want to exclude from the export. For multiple exclude expressions, specify this option multiple times. The regular expression syntax is defined by the java.util.regex package . DETAILS The regular expression options, -f and -rf, provide you with considerable flexibility for specifying which parts of the fabric registry to export. For example, to export every version of the default profile's data, you could use a command like the following: ...

      fabric:export

      suggest the short flag -p for both --profile and --path

      Note:
      Consider implication on documentation pages like http://fabric8.io/#/site/book/doc/index.md?chapter=profiles_md that suggest -p as the --path

              janstey@redhat.com Jonathan Anstey
              pantinor@redhat.com Paolo Antinori
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: