I'm attempting to create a drush command for use outside of a Drupal install. It's basically a script to make a copy of a distribution starter kit and do some string replacing. I'm following the sandwich example.
I'm running into two issues...
1) I created mycommandfile.drush.inc in a new folder. If I try to run the command it says the drush command cannot be found. So I copied the file to my /.drush folder and it finds the command. Any idea why that would be the case?
2) The second issue is that with the file in the /.drush folder it is telling me that I need a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command. In my command declaration I have 'bootstrap' => DRUSH_BOOTSTRAP_DRUSH.