Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-234

Add ability to alias commands (like bash)

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.0.Alpha4
    • Fix Version/s: 1.0.0.Beta3
    • Component/s: UI - Shell
    • Labels:
      None

      Description

      It should be possible to create aliases:

      $ alias foo="echo bar"

      Alias by itself should print a list of aliases:

      $ alias
      $ foo="echo bar"

      Aliases should simply be literal translations via regex on the front of any command, should we support embedded aliases? For modifying any part of a command?

      $ alias foo="bar"
      $ echo foo
      bar

      Etc...

        Gliffy Diagrams

          Activity

          Hide
          lincolnthree Lincoln Baxter III added a comment -

          This can utilize

          org.jboss.forge.shell.spi.CommandInterceptor

          to perform translations.

          Show
          lincolnthree Lincoln Baxter III added a comment - This can utilize org.jboss.forge.shell.spi.CommandInterceptor to perform translations.
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          Done, but requires quotes around the alias definition because of bug in FSH

          Show
          lincolnthree Lincoln Baxter III added a comment - Done, but requires quotes around the alias definition because of bug in FSH

            People

            • Assignee:
              lincolnthree Lincoln Baxter III
              Reporter:
              lincolnthree Lincoln Baxter III
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development