[forge-issues] [JBoss JIRA] (FORGE-2519) build --profile should support tab completions

Claus Ibsen (JIRA) issues at jboss.org
Thu Oct 29 05:26:00 EDT 2015


Claus Ibsen created FORGE-2519:
----------------------------------

             Summary: build --profile should support tab completions
                 Key: FORGE-2519
                 URL: https://issues.jboss.org/browse/FORGE-2519
             Project: Forge
          Issue Type: Enhancement
    Affects Versions: 2.20.0.Final
            Reporter: Claus Ibsen


If you want to build the project from within forge using the build addon, then the --profile option does not support tab completions. It would be nice if it can detect which profile id's there is i nthe maven project and offer tab completions.

For example I have these 3 profiles
{code}
 <profiles>
    <profile>
      <id>f8-build</id>
      <build>
        <defaultGoal>clean install docker:build fabric8:json</defaultGoal>
      </build>
    </profile>
    <profile>
      <id>f8-deploy</id>
      <build>
        <defaultGoal>clean install docker:build docker:push fabric8:json fabric8:apply</defaultGoal>
      </build>
      <properties>
        <fabric8.recreate>true</fabric8.recreate>
        <fabric8.imagePullPolicySnapshot>Always</fabric8.imagePullPolicySnapshot>
      </properties>
    </profile>
    <profile>
      <id>f8-local-deploy</id>
      <build>
        <defaultGoal>clean install docker:build fabric8:json fabric8:apply</defaultGoal>
      </build>
      <properties>
        <fabric8.recreate>true</fabric8.recreate>
      </properties>
    </profile>
  </profiles>
</project>

[foo]$ build --profile
{code}

And I want to execute that.

Also it would be nice if the build addon can support the same syntax as mvn does, eg if you can do
{code}
build -Pf8-local-deploy
{code}

eg using the -P as shorthand for profile.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the forge-issues mailing list