Reusing commands within an orb? (USER ERROR -- RESOLVED)

circle.yml
2.0
#1

When creating an orb, is it possible to have my orb’s commands use other commands defined in the same orb?
I tried adding a new command to combine two of my existing commands into one, but it fails validation (“Cannot find a definition for command named my-reused-command”)

#2

Sorry, I had a typo in my config which was preventing me from reusing my command. This feature does indeed work as documented here: https://circleci.com/docs/2.0/reusing-config/#invoking-other-commands-in-your-command

2 Likes
closed #3

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.