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(
98
98
if answer_yes :
99
99
with open (newfile , "w" , encoding = locale .getpreferredencoding (False )) as buf :
100
100
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(
116
116
117
117
if not session :
118
118
raise exc .SessionNotFound
119
- except TmuxpException :
119
+ except TmuxpException as e :
120
+ print (e ) # NOQA: T201 RUF100
120
121
return
121
122
122
123
frozen_workspace = freezer .freeze (session )
123
124
workspace = freezer .inline (frozen_workspace )
124
125
configparser = ConfigReader (workspace )
125
126
126
127
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
+ )
128
133
if not (
129
134
args .answer_yes
130
135
or prompt_yes_no (
131
136
"The new workspace will require adjusting afterwards. Save workspace file?" ,
132
137
)
133
138
):
134
139
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
+ )
136
145
sys .exit ()
137
146
138
147
dest = args .save_to
@@ -151,6 +160,7 @@ def command_freeze(
151
160
default = save_to ,
152
161
)
153
162
if not args .force and os .path .exists (dest_prompt ):
163
+ print (f"{ dest_prompt } exists. Pick a new filename." ) # NOQA: T201 RUF100
154
164
continue
155
165
156
166
dest = dest_prompt
@@ -204,4 +214,4 @@ def extract_workspace_format(
204
214
buf .write (workspace )
205
215
206
216
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