How to expose a default binary in my snap

Hi I am developing my very first snap (mysnap) and exposing 3 binaries from the snap like this.

apps:
  a:
    command: bin/a
  b:
    command: bin/b
  c:
    command: bin/c

After installing the snap I have to invoke the binaries like this

mysnap.a [invokes bin/a] mysnap.b [invokes bin/b] mysnap.c [invokes bin/c]

What I want is to be able to invoke the binary a by simply calling

mysnap [SHOULD invoke bin/a]

Kindly let me know how I can do this!

If you change the name used in the apps: listing, so that a instead matches the package name mysnap, then it will be invokable as mysnap.

1 Like