File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -98,3 +98,4 @@ def command_convert(
9898 if answer_yes :
9999 with open (newfile , "w" , encoding = locale .getpreferredencoding (False )) as buf :
100100 buf .write (new_workspace )
101+ print (f"New workspace file saved to <{ newfile } >." ) # NOQA: T201 RUF100
Original file line number Diff line number Diff line change @@ -116,23 +116,32 @@ def command_freeze(
116116
117117 if not session :
118118 raise exc .SessionNotFound
119- except TmuxpException :
119+ except TmuxpException as e :
120+ print (e ) # NOQA: T201 RUF100
120121 return
121122
122123 frozen_workspace = freezer .freeze (session )
123124 workspace = freezer .inline (frozen_workspace )
124125 configparser = ConfigReader (workspace )
125126
126127 if not args .quiet :
127- pass
128+ print ( # NOQA: T201 RUF100
129+ "---------------------------------------------------------------"
130+ "\n "
131+ "Freeze does its best to snapshot live tmux sessions.\n " ,
132+ )
128133 if not (
129134 args .answer_yes
130135 or prompt_yes_no (
131136 "The new workspace will require adjusting afterwards. Save workspace file?" ,
132137 )
133138 ):
134139 if not args .quiet :
135- pass
140+ print ( # NOQA: T201 RUF100
141+ "tmuxp has examples in JSON and YAML format at "
142+ "<http://tmuxp.git-pull.com/examples.html>\n "
143+ "View tmuxp docs at <http://tmuxp.git-pull.com/>." ,
144+ )
136145 sys .exit ()
137146
138147 dest = args .save_to
@@ -151,6 +160,7 @@ def command_freeze(
151160 default = save_to ,
152161 )
153162 if not args .force and os .path .exists (dest_prompt ):
163+ print (f"{ dest_prompt } exists. Pick a new filename." ) # NOQA: T201 RUF100
154164 continue
155165
156166 dest = dest_prompt
@@ -204,4 +214,4 @@ def extract_workspace_format(
204214 buf .write (workspace )
205215
206216 if not args .quiet :
207- pass
217+ print ( f"Saved to { dest } ." ) # NOQA: T201 RUF100
You can’t perform that action at this time.
0 commit comments