docs: function generate(path, command, template) {
          var paths = getPaths(path);
          template = template || fs_1.readFileSync(// read in our script template.
          path_1.resolve(constants_1.PARGV_ROOT, 'completion.sh.tpl'), 'utf-8');
          template = template.replace(/{{app_name}}/g, paths.appName); // replace app name.
          template = template.replace(/{{app_reply_command}}/g, command); // replace the command.
          var script = template.replace(/{{app_path}}/g, paths.appPath); // replace the path.
          var sourceScript = srcTpl;
          sourceScript = sourceScript.replace(/{{app_name}}/g, paths.appName);
          sourceScript = sourceScript.replace(/{{app_completions_path}}/g, paths.completionsPath);
          return {
              paths: paths,
              command: command,
              script: script,
              sourceScript: sourceScript
          };
      }