roebe 0.5.120 → 0.5.121
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of roebe might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +57 -34
- data/doc/README.gen +56 -33
- data/doc/add_ons_for_ruby/fxruby.md +14 -0
- data/doc/add_ons_for_ruby/prawn.md +12 -0
- data/doc/sinatra_tutorial/sinatra_tutorial.rb +52 -22
- data/lib/roebe/base/colours.rb +59 -50
- data/lib/roebe/classes/create_file_skeleton/generate_ruby_string.rb +1 -0
- data/lib/roebe/classes/current_monitor_resolution.rb +27 -9
- data/lib/roebe/classes/do_install.rb +1 -9
- data/lib/roebe/classes/done.rb +1 -9
- data/lib/roebe/classes/done_and_open.rb +2 -13
- data/lib/roebe/classes/email.rb +36 -26
- data/lib/roebe/classes/find_out_version_of.rb +1 -5
- data/lib/roebe/classes/find_static_libraries.rb +1 -18
- data/lib/roebe/classes/fluxbox/generate_fluxbox_apps_file.rb +1 -9
- data/lib/roebe/classes/generate_fstab_file/generate_fstab_file.rb +1 -9
- data/lib/roebe/classes/generate_master_shell_script.rb +1 -13
- data/lib/roebe/classes/generate_system_values.rb +1 -9
- data/lib/roebe/classes/get_dependencies.rb +1 -9
- data/lib/roebe/classes/good_night.rb +1 -5
- data/lib/roebe/classes/google_url_cleaner.rb +1 -9
- data/lib/roebe/classes/grant_superuser_rights.rb +0 -5
- data/lib/roebe/classes/run/run.rb +130 -105
- data/lib/roebe/classes/symlink_files_from_that_directory_to_the_current_directory/symlink_files_from_that_directory_to_the_current_directory.rb +10 -1
- data/lib/roebe/classes/time/current_time_in_singapore.rb +1 -5
- data/lib/roebe/classes/umlaut_converter.rb +1 -1
- data/lib/roebe/classes/use_jruby.rb +68 -0
- data/lib/roebe/documentation/prawn.md +0 -11
- data/lib/roebe/gui/gtk3/shell/misc.rb +94 -0
- data/lib/roebe/gui/gtk3/shell/shell.rb +690 -10
- data/lib/roebe/gui/libui/shell/shell.rb +107 -0
- data/lib/roebe/gui/shared_code/shell/shell_module.rb +0 -601
- data/lib/roebe/pdf/README.md +1 -0
- data/lib/roebe/pdf/prawn/all_in_one_showcasing_prawn.rb +160 -0
- data/lib/roebe/requires/require_the_run_class.rb +7 -0
- data/lib/roebe/shell/shell/class_methods.rb +25 -0
- data/lib/roebe/shell/shell/core/browser.rb +4 -1
- data/lib/roebe/shell/shell/core/cat.rb +34 -28
- data/lib/roebe/shell/shell/core/disable.rb +12 -1
- data/lib/roebe/shell/shell/core/esystem.rb +10 -1
- data/lib/roebe/shell/shell/core/help.rb +24 -21
- data/lib/roebe/shell/shell/core/queries.rb +7 -7
- data/lib/roebe/shell/shell/core/set.rb +15 -0
- data/lib/roebe/shell/shell/core/show_display_feedback_and_report.rb +11 -7
- data/lib/roebe/shell/shell/core/stat.rb +4 -1
- data/lib/roebe/shell/shell/menu.rb +231 -173
- data/lib/roebe/shell/shell/shell.rb +77 -77
- data/lib/roebe/toplevel_methods/unicode/popular_unicode_symbols.rb +9 -0
- data/lib/roebe/version/version.rb +2 -2
- data/lib/roebe/www/cancer/cancer.rb +10 -5
- data/lib/roebe/www/cellbiology/cellbiology.rb +4 -0
- data/lib/roebe/www/covid19/covid19.rb +32 -6
- data/lib/roebe/www/developmental_biology/developmental_biology.rb +16 -4
- data/lib/roebe/www/genomics/genomics.rb +27 -3
- data/lib/roebe/www/hardware/computersysteme/computersysteme.rb +25 -13
- data/lib/roebe/www/libreoffice/libreoffice.rb +22 -5
- data/lib/roebe/www/lighttpd/autogenerated_lighttpd.conf +1 -1
- data/lib/roebe/www/lighttpd/configuration/redirects.conf +1 -1
- data/lib/roebe/www/links/links.rb +1 -1
- data/lib/roebe/www/mathematics/mathematics.rb +48 -24
- data/lib/roebe/www/neurobiology/neurobiology.rb +13 -3
- data/lib/roebe/www/virology/virology.rb +81 -58
- data/lib/roebe/www/weechat/weechat.cgi +1 -1
- data/lib/roebe/www/weechat/weechat.rb +4 -5
- data/lib/roebe/www/wlan/wlan.rb +9 -3
- metadata +12 -7
- data/lib/roebe/classes/monitor_resolution.rb +0 -95
- data/lib/roebe/gui/gtk2/shell/shell.rb +0 -37
- data/lib/roebe/gui/shared_code/shell/connect_skeleton.rb +0 -53
- data/lib/roebe/gui/shared_code/shell/constants.rb +0 -82
@@ -10,11 +10,14 @@ module Roebe
|
|
10
10
|
|
11
11
|
class Shell < Base # === Roebe::Shell
|
12
12
|
|
13
|
+
require 'roebe/shell/shell/class_methods.rb'
|
13
14
|
require 'roebe/shell/shell/core/compile.rb'
|
14
15
|
require 'roebe/shell/shell/core/esystem.rb'
|
15
16
|
require 'roebe/shell/shell/core/require.rb'
|
16
17
|
require 'roebe/shell/shell/core/screenshot.rb'
|
18
|
+
require 'roebe/shell/shell/core/unalias.rb'
|
17
19
|
require 'roebe/shell/shell/core/variables.rb'
|
20
|
+
require 'roebe/requires/require_the_run_class.rb'
|
18
21
|
|
19
22
|
# ========================================================================= #
|
20
23
|
# === menu (menu tag)
|
@@ -65,9 +68,232 @@ class Shell < Base # === Roebe::Shell
|
|
65
68
|
# Always strip the given input - we do not need any trailing newlines
|
66
69
|
# and similar.
|
67
70
|
# ======================================================================= #
|
68
|
-
i.strip!
|
71
|
+
i.strip! if i
|
69
72
|
case i # (case tag)
|
70
73
|
# ======================================================================= #
|
74
|
+
# === raw_ls
|
75
|
+
#
|
76
|
+
# The name is a bit of a misnomer; it is not quite a "raw ls", but
|
77
|
+
# we will assume that this is what the user meant, so we parse it
|
78
|
+
# and then return the Array. This is especially useful for GUIs.
|
79
|
+
# ======================================================================= #
|
80
|
+
when /^raw(_|-| )?ls$/i
|
81
|
+
ecolsystem('ls')
|
82
|
+
if is_on_windows?
|
83
|
+
array = `dir`.split("\n")
|
84
|
+
else
|
85
|
+
array = `ls`.split("\n")
|
86
|
+
end
|
87
|
+
clear_last_result
|
88
|
+
array.each {|entry| e entry }
|
89
|
+
return array # Return our Array here.
|
90
|
+
# ======================================================================= #
|
91
|
+
# === --rawtime?
|
92
|
+
# ======================================================================= #
|
93
|
+
when /^-?-?raw(_|-| )?time\??$/i
|
94
|
+
e return_time
|
95
|
+
# ======================================================================= #
|
96
|
+
# === ll (ll tag, ls tag)
|
97
|
+
#
|
98
|
+
# This entry point will show which files, directories and symlinks
|
99
|
+
# exist in the current working directory.
|
100
|
+
# ======================================================================= #
|
101
|
+
when 'll',
|
102
|
+
'ls',
|
103
|
+
'l',
|
104
|
+
'list',
|
105
|
+
'ls?',
|
106
|
+
'l1',
|
107
|
+
'2l',
|
108
|
+
'listing',
|
109
|
+
/^show(_|-| )?directory(_|-| )?listing$/,
|
110
|
+
'sdc',
|
111
|
+
'rdis',
|
112
|
+
'rdir'
|
113
|
+
if a? && a?.join(' ') == 'only dirs'
|
114
|
+
show_only_directories
|
115
|
+
else
|
116
|
+
show_directory_content(f) # in bl $DIA/core/show_directory_content.rb
|
117
|
+
end
|
118
|
+
# ======================================================================= #
|
119
|
+
# === use_colours?
|
120
|
+
#
|
121
|
+
# Query whether colours are used by the current Roebe::Shell instance.
|
122
|
+
# ======================================================================= #
|
123
|
+
when /^use(_|-| )?colours\??$/i,
|
124
|
+
/^col\??$/i,
|
125
|
+
/^colours\??$/i
|
126
|
+
e use_colours?
|
127
|
+
# ======================================================================= #
|
128
|
+
# === --time?
|
129
|
+
# ======================================================================= #
|
130
|
+
when /^-?-?time\??$/i
|
131
|
+
e steelblue(return_time)
|
132
|
+
# ======================================================================= #
|
133
|
+
# === rdate
|
134
|
+
# ======================================================================= #
|
135
|
+
when 'rdate',
|
136
|
+
'rtime',
|
137
|
+
'rdat',
|
138
|
+
/^run(_|-| )?rdate$/i
|
139
|
+
run_rdate(a)
|
140
|
+
# ======================================================================= #
|
141
|
+
# === show_mod_time
|
142
|
+
# ======================================================================= #
|
143
|
+
when /^show(_|-| )?mod(_|-| )?time$/
|
144
|
+
config?.do_show_modification_time = true
|
145
|
+
# ======================================================================= #
|
146
|
+
# === stat (stat tag)
|
147
|
+
#
|
148
|
+
# This invokes "stat" on the given file.
|
149
|
+
#
|
150
|
+
# Usage example:
|
151
|
+
#
|
152
|
+
# stat 1
|
153
|
+
#
|
154
|
+
# ======================================================================= #
|
155
|
+
when 'stat',
|
156
|
+
/^stat(_|-| )?files$/,
|
157
|
+
'filestat',
|
158
|
+
'index' # stat tag
|
159
|
+
stat_files(a) # bl $DIA/core/stat*
|
160
|
+
# ======================================================================= #
|
161
|
+
# === javafx
|
162
|
+
#
|
163
|
+
# This is specifically used for JavaFX applications.
|
164
|
+
# ======================================================================= #
|
165
|
+
when 'javafx'
|
166
|
+
esystem 'java --module-path $JAVAFX_HOME --add-modules javafx.controls,javafx.fxml '+a?.join(' ').strip
|
167
|
+
# ======================================================================= #
|
168
|
+
# === return_date
|
169
|
+
#
|
170
|
+
# Usage example:
|
171
|
+
#
|
172
|
+
# today?
|
173
|
+
#
|
174
|
+
# ======================================================================= #
|
175
|
+
when /^return(_|-| )?date$/,
|
176
|
+
/^-?-?report(_|-| )?return(_|-| )?date$/,
|
177
|
+
'today?'
|
178
|
+
report_return_date
|
179
|
+
# ======================================================================= #
|
180
|
+
# === pwd
|
181
|
+
# ======================================================================= #
|
182
|
+
when /^-?-?pwd\??$/i,
|
183
|
+
/^-?-?report(_|-| )?dir$/i,
|
184
|
+
/^-?-?report(_|-| )?pwd$/i,
|
185
|
+
/^-?-?raw(_|-| )?pwd$/i,
|
186
|
+
/^-?-?wpd$/i
|
187
|
+
report_pwd; e
|
188
|
+
return set_result(return_pwd)
|
189
|
+
# ======================================================================= #
|
190
|
+
# === setpwd
|
191
|
+
# ======================================================================= #
|
192
|
+
when 'setpwd'
|
193
|
+
set_prompt('PWD')
|
194
|
+
# ======================================================================= #
|
195
|
+
# === epwd
|
196
|
+
#
|
197
|
+
# This entry point will simply output the current working directory.
|
198
|
+
# ======================================================================= #
|
199
|
+
when /^epwd$/
|
200
|
+
e sdir(return_pwd)
|
201
|
+
# ======================================================================= #
|
202
|
+
# === raw_command
|
203
|
+
#
|
204
|
+
# Usage example:
|
205
|
+
#
|
206
|
+
# rawcommand ls
|
207
|
+
#
|
208
|
+
# ======================================================================= #
|
209
|
+
when /^-?-?raw(_|-| )?command$/
|
210
|
+
system(a.join(' ').strip)
|
211
|
+
# ======================================================================= #
|
212
|
+
# === raw_config_dir?
|
213
|
+
# ======================================================================= #
|
214
|
+
when /^-?-?raw(_|-| )?config(_|-| )?dir\??$/,
|
215
|
+
'xxxx'
|
216
|
+
e config_dir?
|
217
|
+
# ======================================================================= #
|
218
|
+
# === raw_serve
|
219
|
+
# ======================================================================= #
|
220
|
+
when /^raw(_|-| )?serve$/,
|
221
|
+
'rserve'
|
222
|
+
raw_serve(a)
|
223
|
+
# ======================================================================= #
|
224
|
+
# === winfx
|
225
|
+
#
|
226
|
+
# This is specifically used for JavaFX applications, on Windows.
|
227
|
+
# ======================================================================= #
|
228
|
+
when 'winfx'
|
229
|
+
esystem 'java --module-path /home/Programs/Javafx/18.0.2/lib/ '\
|
230
|
+
'--add-modules javafx.controls,javafx.fxml '+a?.join(' ').strip
|
231
|
+
# ======================================================================= #
|
232
|
+
# === raw_echo
|
233
|
+
#
|
234
|
+
# Usage example:
|
235
|
+
#
|
236
|
+
# raw_echo Hello world!
|
237
|
+
#
|
238
|
+
# ======================================================================= #
|
239
|
+
when /^raw(_|-| )?echo$/i
|
240
|
+
e a.join(' ').strip
|
241
|
+
# ======================================================================= #
|
242
|
+
# === raw_directory_content
|
243
|
+
# ======================================================================= #
|
244
|
+
when /^-?-?raw(_|-| )?directory(_|-| )?content\??$/
|
245
|
+
DirectoryParadise.report
|
246
|
+
# ======================================================================= #
|
247
|
+
# === java
|
248
|
+
#
|
249
|
+
# Simply run java here.
|
250
|
+
# ======================================================================= #
|
251
|
+
when 'java'
|
252
|
+
esystem 'java '+a?.join(' ').strip
|
253
|
+
# ======================================================================= #
|
254
|
+
# === coderay?
|
255
|
+
# ======================================================================= #
|
256
|
+
when 'coderay?',
|
257
|
+
/^use(_|-| )?coderay\??$/
|
258
|
+
e vt(use_coderay?)
|
259
|
+
# ======================================================================= #
|
260
|
+
# === cat (cat tag)
|
261
|
+
#
|
262
|
+
# "cat" in general is equal to "obtain file content", aka the
|
263
|
+
# content of an existing file.
|
264
|
+
#
|
265
|
+
# The original name derived from "to concatenate files" - notice
|
266
|
+
# how concatenate contains the string "cat".
|
267
|
+
#
|
268
|
+
# Usage example:
|
269
|
+
#
|
270
|
+
# cat /tmp/at-spi-dbus-bus.service
|
271
|
+
#
|
272
|
+
# ======================================================================= #
|
273
|
+
when 'cat',
|
274
|
+
'cat2',
|
275
|
+
/^-?-?read(_|-| )?from/i,
|
276
|
+
/^-?-?read(_|-| )?file/i,
|
277
|
+
/^-?-?from(_|-| )?file/i,
|
278
|
+
'rfile',
|
279
|
+
'<<',
|
280
|
+
'rfrom',
|
281
|
+
'content'
|
282
|
+
cat(a) # bl $DIA/core/cat.rb
|
283
|
+
# ======================================================================= #
|
284
|
+
# === run
|
285
|
+
#
|
286
|
+
# This entry point is a simple wrapper over class Roebe::Run.
|
287
|
+
#
|
288
|
+
# Specific usage examples:
|
289
|
+
#
|
290
|
+
# run --native-static-image Roebe.java
|
291
|
+
# run ButtonExample.java
|
292
|
+
#
|
293
|
+
# ======================================================================= #
|
294
|
+
when 'run'
|
295
|
+
Roebe::Run.new(a)
|
296
|
+
# ======================================================================= #
|
71
297
|
# === beautiful_url
|
72
298
|
#
|
73
299
|
# This is a more direct wrapper over beautiful_url. We will also
|
@@ -148,34 +374,6 @@ class Shell < Base # === Roebe::Shell
|
|
148
374
|
show_directory_content(get_pwd, true) # bl $DIA/core/show.rb
|
149
375
|
# show :hidden ^^^
|
150
376
|
# ======================================================================= #
|
151
|
-
# === ll
|
152
|
-
#
|
153
|
-
# This entry point will show which files, directories and symlinks
|
154
|
-
# exist in the current working directory.
|
155
|
-
# ======================================================================= #
|
156
|
-
when 'll',
|
157
|
-
'ls',
|
158
|
-
'l',
|
159
|
-
'list',
|
160
|
-
'ls?',
|
161
|
-
'l1',
|
162
|
-
'2l',
|
163
|
-
'listing',
|
164
|
-
/^show(_|-| )?directory(_|-| )?listing$/,
|
165
|
-
'sdc',
|
166
|
-
'rdis',
|
167
|
-
'rdir'
|
168
|
-
if a? && a?.join(' ') == 'only dirs'
|
169
|
-
show_only_directories
|
170
|
-
else
|
171
|
-
show_directory_content(f) # in bl $DIA/core/show_directory_content.rb
|
172
|
-
end
|
173
|
-
# ======================================================================= #
|
174
|
-
# === raw_ls
|
175
|
-
# ======================================================================= #
|
176
|
-
when /^raw(_|-| )?ls$/i
|
177
|
-
esystem 'ls'
|
178
|
-
# ======================================================================= #
|
179
377
|
# === bl
|
180
378
|
#
|
181
379
|
# This entry point can also be used via "open_in_editor".
|
@@ -472,30 +670,6 @@ class Shell < Base # === Roebe::Shell
|
|
472
670
|
when /-?-?array(_|-| )?readline(_|-| )?completion(_|-| )?proc$/i
|
473
671
|
pp @internal_hash[:array_readline_completion_proc]
|
474
672
|
# ======================================================================= #
|
475
|
-
# === cat (cat tag)
|
476
|
-
#
|
477
|
-
# "cat" in general is equal to "obtain file content", aka the
|
478
|
-
# content of an existing file.
|
479
|
-
#
|
480
|
-
# The original name derived from "to concatenate files" - notice
|
481
|
-
# how concatenate contains the string "cat".
|
482
|
-
#
|
483
|
-
# Usage example:
|
484
|
-
#
|
485
|
-
# cat /tmp/at-spi-dbus-bus.service
|
486
|
-
#
|
487
|
-
# ======================================================================= #
|
488
|
-
when 'cat',
|
489
|
-
'cat2',
|
490
|
-
/^-?-?read(_|-| )?from/i,
|
491
|
-
/^-?-?read(_|-| )?file/i,
|
492
|
-
/^-?-?from(_|-| )?file/i,
|
493
|
-
'rfile',
|
494
|
-
'<<',
|
495
|
-
'rfrom',
|
496
|
-
'content'
|
497
|
-
cat(a) # bl $DIA/core/cat.rb
|
498
|
-
# ======================================================================= #
|
499
673
|
# === readline_is_available?
|
500
674
|
# ======================================================================= #
|
501
675
|
when /^readline(_|-| )?is(_|-| )?available\??$/i
|
@@ -848,11 +1022,6 @@ class Shell < Base # === Roebe::Shell
|
|
848
1022
|
when 'make'
|
849
1023
|
make(a)
|
850
1024
|
# ======================================================================= #
|
851
|
-
# === --time?
|
852
|
-
# ======================================================================= #
|
853
|
-
when /^-?-?time\??$/i
|
854
|
-
e steelblue(return_time)
|
855
|
-
# ======================================================================= #
|
856
1025
|
# === whoami
|
857
1026
|
# ======================================================================= #
|
858
1027
|
when /^-?-?whoami\??$/i,
|
@@ -1415,18 +1584,6 @@ class Shell < Base # === Roebe::Shell
|
|
1415
1584
|
'tar.xz', first_argument
|
1416
1585
|
)
|
1417
1586
|
# ======================================================================= #
|
1418
|
-
# === return_date
|
1419
|
-
#
|
1420
|
-
# Usage example:
|
1421
|
-
#
|
1422
|
-
# today?
|
1423
|
-
#
|
1424
|
-
# ======================================================================= #
|
1425
|
-
when /^return(_|-| )?date$/,
|
1426
|
-
/^-?-?report(_|-| )?return(_|-| )?date$/,
|
1427
|
-
'today?'
|
1428
|
-
report_return_date
|
1429
|
-
# ======================================================================= #
|
1430
1587
|
# === tabs
|
1431
1588
|
#
|
1432
1589
|
# This entry point will start new konsole tabs.
|
@@ -2069,11 +2226,6 @@ class Shell < Base # === Roebe::Shell
|
|
2069
2226
|
when 'exists?' # ← This will simply query whether the file exists.
|
2070
2227
|
e File.exist?(file?)
|
2071
2228
|
# ======================================================================= #
|
2072
|
-
# === setpwd
|
2073
|
-
# ======================================================================= #
|
2074
|
-
when 'setpwd'
|
2075
|
-
set_prompt('PWD')
|
2076
|
-
# ======================================================================= #
|
2077
2229
|
# === Simple pass-throughs via lynx
|
2078
2230
|
#
|
2079
2231
|
# Usage example:
|
@@ -2379,21 +2531,6 @@ class Shell < Base # === Roebe::Shell
|
|
2379
2531
|
/^capitalize(_|-| )?this(_|-| )?file$/i
|
2380
2532
|
capitalize_this_file(a)
|
2381
2533
|
# ======================================================================= #
|
2382
|
-
# === stat
|
2383
|
-
#
|
2384
|
-
# This invokes "stat" on the given file.
|
2385
|
-
#
|
2386
|
-
# Usage example:
|
2387
|
-
#
|
2388
|
-
# stat 1
|
2389
|
-
#
|
2390
|
-
# ======================================================================= #
|
2391
|
-
when 'stat',
|
2392
|
-
/^stat(_|-| )?files$/,
|
2393
|
-
'filestat',
|
2394
|
-
'index' # stat tag
|
2395
|
-
stat_files(a) # bl $DIA/core/stat*
|
2396
|
-
# ======================================================================= #
|
2397
2534
|
# === stats
|
2398
2535
|
# ======================================================================= #
|
2399
2536
|
when /^stats\??$/, # === stats?
|
@@ -2526,16 +2663,6 @@ class Shell < Base # === Roebe::Shell
|
|
2526
2663
|
'favaudio?'
|
2527
2664
|
show_favourite_audiofiles
|
2528
2665
|
# ======================================================================= #
|
2529
|
-
# === raw_echo
|
2530
|
-
#
|
2531
|
-
# Usage example:
|
2532
|
-
#
|
2533
|
-
# raw_echo Hello world!
|
2534
|
-
#
|
2535
|
-
# ======================================================================= #
|
2536
|
-
when /^raw(_|-| )?echo$/i
|
2537
|
-
e a.join(' ').strip
|
2538
|
-
# ======================================================================= #
|
2539
2666
|
# === google
|
2540
2667
|
# ======================================================================= #
|
2541
2668
|
when 'google','goog','goo','wwwfind','www_find'
|
@@ -2552,16 +2679,6 @@ class Shell < Base # === Roebe::Shell
|
|
2552
2679
|
_ = Roebe::Shell::DiamondrcParser.new(Roebe::Shell.file_diamondrc)
|
2553
2680
|
set_colours(_.colours?) if _.colours?
|
2554
2681
|
# ======================================================================= #
|
2555
|
-
# === raw_directory_content
|
2556
|
-
# ======================================================================= #
|
2557
|
-
when /^-?-?raw(_|-| )?directory(_|-| )?content\??$/
|
2558
|
-
DirectoryParadise.report
|
2559
|
-
# ======================================================================= #
|
2560
|
-
# === show_mod_time
|
2561
|
-
# ======================================================================= #
|
2562
|
-
when /^show(_|-| )?mod(_|-| )?time$/
|
2563
|
-
config?.do_show_modification_time = true
|
2564
|
-
# ======================================================================= #
|
2565
2682
|
# === save_config
|
2566
2683
|
# ======================================================================= #
|
2567
2684
|
when /^save(_|-| )?config$/,
|
@@ -2578,14 +2695,6 @@ class Shell < Base # === Roebe::Shell
|
|
2578
2695
|
'dcol'
|
2579
2696
|
disable_colours
|
2580
2697
|
# ======================================================================= #
|
2581
|
-
# === rdate
|
2582
|
-
# ======================================================================= #
|
2583
|
-
when 'rdate',
|
2584
|
-
'rtime',
|
2585
|
-
'rdat',
|
2586
|
-
/^run(_|-| )?rdate$/i
|
2587
|
-
run_rdate(a)
|
2588
|
-
# ======================================================================= #
|
2589
2698
|
# === show_available_components
|
2590
2699
|
# ======================================================================= #
|
2591
2700
|
when /^show(_|-| )?available(_|-| )?components/
|
@@ -3028,7 +3137,8 @@ class Shell < Base # === Roebe::Shell
|
|
3028
3137
|
# ======================================================================= #
|
3029
3138
|
when 'set_browser?','setbrowser?',
|
3030
3139
|
'sbrowser?'
|
3031
|
-
e 'Use the call '+steelblue('set_browser')+
|
3140
|
+
e 'Use the call '+steelblue('set_browser')+
|
3141
|
+
' to assign a specific browser.'
|
3032
3142
|
# ======================================================================= #
|
3033
3143
|
# === rand?
|
3034
3144
|
# ======================================================================= #
|
@@ -3199,11 +3309,6 @@ class Shell < Base # === Roebe::Shell
|
|
3199
3309
|
'rlogin'
|
3200
3310
|
ssh_login
|
3201
3311
|
# ======================================================================= #
|
3202
|
-
# === coderay?
|
3203
|
-
# ======================================================================= #
|
3204
|
-
when 'coderay?'
|
3205
|
-
e vt(use_coderay?)
|
3206
|
-
# ======================================================================= #
|
3207
3312
|
# === r1
|
3208
3313
|
# ======================================================================= #
|
3209
3314
|
when 'r1'
|
@@ -3416,15 +3521,6 @@ class Shell < Base # === Roebe::Shell
|
|
3416
3521
|
when 'config?.show_configuration'
|
3417
3522
|
config?.show_configuration
|
3418
3523
|
# ======================================================================= #
|
3419
|
-
# === use_colours?
|
3420
|
-
#
|
3421
|
-
# Query whether colours are used by the current Roebe::Shell instance.
|
3422
|
-
# ======================================================================= #
|
3423
|
-
when /^use(_|-| )?colours\??$/i,
|
3424
|
-
/^col\??$/i,
|
3425
|
-
/^colours\??$/i
|
3426
|
-
e use_colours?
|
3427
|
-
# ======================================================================= #
|
3428
3524
|
# === htop
|
3429
3525
|
# ======================================================================= #
|
3430
3526
|
when 'htop',
|
@@ -4288,18 +4384,6 @@ class Shell < Base # === Roebe::Shell
|
|
4288
4384
|
e 'We are now '+swarn('NOT')+rev+' on a roebe-system.'
|
4289
4385
|
set_is_not_on_roebe
|
4290
4386
|
# ======================================================================= #
|
4291
|
-
# === run
|
4292
|
-
#
|
4293
|
-
# This entry point is a simple wrapper over class Roebe::Run.
|
4294
|
-
#
|
4295
|
-
# Specific usage example:
|
4296
|
-
#
|
4297
|
-
# run --native-static-image Roebe.java
|
4298
|
-
#
|
4299
|
-
# ======================================================================= #
|
4300
|
-
when 'run'
|
4301
|
-
Roebe::Run.new(a)
|
4302
|
-
# ======================================================================= #
|
4303
4387
|
# === run_tests
|
4304
4388
|
# ======================================================================= #
|
4305
4389
|
when 'run_tests',
|
@@ -4488,18 +4572,6 @@ class Shell < Base # === Roebe::Shell
|
|
4488
4572
|
when /^-?-?deep(_|-| )?config\??$/
|
4489
4573
|
pp config?
|
4490
4574
|
# ======================================================================= #
|
4491
|
-
# === raw_config_dir?
|
4492
|
-
# ======================================================================= #
|
4493
|
-
when /^-?-?raw(_|-| )?config(_|-| )?dir\??$/,
|
4494
|
-
'xxxx'
|
4495
|
-
e config_dir?
|
4496
|
-
# ======================================================================= #
|
4497
|
-
# === raw_serve
|
4498
|
-
# ======================================================================= #
|
4499
|
-
when /^raw(_|-| )?serve$/,
|
4500
|
-
'rserve'
|
4501
|
-
raw_serve(a)
|
4502
|
-
# ======================================================================= #
|
4503
4575
|
# === split_pdf
|
4504
4576
|
#
|
4505
4577
|
# This one is similar to --combine-these-pdf-pages, but by default
|
@@ -4549,21 +4621,6 @@ class Shell < Base # === Roebe::Shell
|
|
4549
4621
|
when 'split' # This will default to video splitting right now.
|
4550
4622
|
split(a) # bl $DIA/core/split.rb
|
4551
4623
|
# ======================================================================= #
|
4552
|
-
# === epwd
|
4553
|
-
#
|
4554
|
-
# This entry point will simply output the current working directory.
|
4555
|
-
# ======================================================================= #
|
4556
|
-
when /^epwd$/
|
4557
|
-
e sdir(return_pwd)
|
4558
|
-
# ======================================================================= #
|
4559
|
-
# === pwd
|
4560
|
-
# ======================================================================= #
|
4561
|
-
when /^-?-?pwd\??$/i,
|
4562
|
-
/^-?-?report(_|-| )?pwd$/i,
|
4563
|
-
/^-?-?report(_|-| )?dir$/i,
|
4564
|
-
/^-?-?wpd$/i
|
4565
|
-
report_pwd; e
|
4566
|
-
# ======================================================================= #
|
4567
4624
|
# === create_webpage
|
4568
4625
|
# ======================================================================= #
|
4569
4626
|
when /^create(_|-| )?webpage$/,
|
@@ -7794,7 +7851,7 @@ class Shell < Base # === Roebe::Shell
|
|
7794
7851
|
# abc def ghi joe > hi
|
7795
7852
|
#
|
7796
7853
|
# ===================================================================== #
|
7797
|
-
elsif original_input?.count('>') == 1
|
7854
|
+
elsif original_input? and (original_input?.count('>') == 1)
|
7798
7855
|
append_into_file(original_input?)
|
7799
7856
|
# ===================================================================== #
|
7800
7857
|
# === Undocumented internal help option
|
@@ -7901,5 +7958,6 @@ class Shell < Base # === Roebe::Shell
|
|
7901
7958
|
alias check_against_menu menu # === check_against_menu
|
7902
7959
|
alias check_against menu # === check_against
|
7903
7960
|
alias evaluate_this_input menu # === evaluate_this_input
|
7961
|
+
alias do_evaluate_this_command menu # === do_evaluate_this_command
|
7904
7962
|
|
7905
7963
|
end; end
|