def notes(self, options): """ Open facet notes file Usage: notes [FACET] """ facet = self._get_facet(options) os_exec(['/bin/bash', '-c', '$EDITOR %s' % facet.notes_file])
def pr(self, options): """ Open facet PR.md file Usage: pr [FACET] """ facet = self._get_facet(options) os_exec(['/bin/bash', '-c', '$EDITOR %s' % facet.pr_file])
def directory(self, options): """ Open editor on facet directory Usage: directory [FACET] """ facet = self._get_facet(options) os_exec(['/bin/bash', '-c', '$EDITOR %s' % facet.directory])
def edit(self, options): """ Edit facet Usage: edit [FACET] """ facet = self._get_facet(options) os_exec(['/bin/bash', '-c', '$EDITOR %s' % facet.repo])
def _cd(directory): if append_to_prompt_commands_file('cd %s\n' % directory): sys.exit(0) else: os.chdir(directory) os_exec(['/bin/bash'])