Esempio n. 1
0
    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])
Esempio n. 2
0
    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])
Esempio n. 3
0
    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])
Esempio n. 4
0
    def edit(self, options):
        """
        Edit facet

        Usage:
          edit [FACET]
        """
        facet = self._get_facet(options)
        os_exec(['/bin/bash', '-c', '$EDITOR %s' % facet.repo])
Esempio n. 5
0
    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])
Esempio n. 6
0
    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])
Esempio n. 7
0
    def edit(self, options):
        """
        Edit facet

        Usage:
          edit [FACET]
        """
        facet = self._get_facet(options)
        os_exec(['/bin/bash', '-c', '$EDITOR %s' % facet.repo])
Esempio n. 8
0
    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])
Esempio n. 9
0
 def _cd(directory):
     if append_to_prompt_commands_file('cd %s\n' % directory):
         sys.exit(0)
     else:
         os.chdir(directory)
         os_exec(['/bin/bash'])
Esempio n. 10
0
 def _cd(directory):
     if append_to_prompt_commands_file('cd %s\n' % directory):
         sys.exit(0)
     else:
         os.chdir(directory)
         os_exec(['/bin/bash'])