<s> from __future__ import absolute_import , unicode_literals , print_function , division <EOL> import sublime <EOL> from . import GitWindowCommand <EOL> class GitFlowCommand ( GitWindowCommand ) : <EOL> def is_visible ( self ) : <EOL> s = sublime . load_settings ( "<STR_LIT>" ) <EOL> if s . get ( '<STR_LIT>' ) : <EOL> return True <EOL> return False <EOL> class GitFlowFeatureStartCommand ( GitFlowCommand ) : <EOL> def run ( self ) : <EOL> self . get_window ( ) . show_input_panel ( '<STR_LIT>' , '<STR_LIT>' , self . on_done , None , None ) <EOL> def on_done ( self , feature_name ) : <EOL> self . run_command ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:start>' , feature_name ] ) <EOL> class GitFlowFeatureFinishCommand ( GitFlowCommand ) : <EOL> def run ( self ) : <EOL> self . run_command ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , self . feature_done ) <EOL> def feature_done ( self , result ) : <EOL> self . results = result . rstrip ( ) . split ( '<STR_LIT:\n>' ) <EOL> self . quick_panel ( self . results , self . panel_done , <EOL> sublime . MONOSPACE_FONT ) <EOL> def panel_done ( self , picked ) : <EOL> if <NUM_LIT:0> > picked < len ( self . results ) : <EOL> return <EOL> picked_feature = self . results [ picked ] <EOL> if picked_feature . startswith ( "<STR_LIT:*>" ) : <EOL> picked_feature = picked_feature . strip ( "<STR_LIT:*>" ) <EOL> picked_feature = picked_feature . strip ( ) <EOL> self . run_command ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , picked_feature ] ) <EOL> class GitFlowReleaseStartCommand ( GitFlowCommand ) : <EOL> def run ( self ) : <EOL> self . get_window ( ) . show_input_panel ( '<STR_LIT>' , '<STR_LIT>' , self . on_done , None , None ) <EOL> def on_done ( self , release_name ) : <EOL> self . run_command ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:start>' , release_name ] ) <EOL> class GitFlowReleaseFinishCommand ( GitFlowCommand ) : <EOL> def run ( self ) : <EOL> self . run_command ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , self . release_done ) <EOL> def release_done ( self , result ) : <EOL> self . results = result . rstrip ( ) . split ( '<STR_LIT:\n>' ) <EOL> self . quick_panel ( self . results , self . panel_done , <EOL> sublime . MONOSPACE_FONT ) <EOL> def panel_done ( self , picked ) : <EOL> if <NUM_LIT:0> > picked < len ( self . results ) : <EOL> return <EOL> picked_release = self . results [ picked ] <EOL> if picked_release . startswith ( "<STR_LIT:*>" ) : <EOL> picked_release = picked_release . strip ( "<STR_LIT:*>" ) <EOL> picked_release = picked_release . strip ( ) <EOL> self . run_command ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , picked_release ] ) <EOL> class GitFlowHotfixStartCommand ( GitFlowCommand ) : <EOL> def run ( self ) : <EOL> self . get_window ( ) . show_input_panel ( '<STR_LIT>' , '<STR_LIT>' , self . on_done , None , None ) <EOL> def on_done ( self , hotfix_name ) : <EOL> self . run_command ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:start>' , hotfix_name ] ) <EOL> class GitFlowHotfixFinishCommand ( GitFlowCommand ) : <EOL> def run ( self ) : <EOL> self . run_command ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , self . hotfix_done ) <EOL> def hotfix_done ( self , result ) : <EOL> self . results = result . rstrip ( ) . split ( '<STR_LIT:\n>' ) <EOL> self . quick_panel ( self . results , self . panel_done , <EOL> sublime . MONOSPACE_FONT ) <EOL> def panel_done ( self , picked ) : <EOL> if <NUM_LIT:0> > picked < len ( self . results ) : <EOL> return <EOL> picked_hotfix = self . results [ picked ] <EOL> if picked_hotfix . startswith ( "<STR_LIT:*>" ) : <EOL> picked_hotfix = picked_hotfix . strip ( "<STR_LIT:*>" ) <EOL> picked_hotfix = picked_hotfix . strip ( ) <EOL> self . run_command ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , picked_hotfix ] ) </s>
