lib/arql/repl.rb in arql-0.3.3 vs lib/arql/repl.rb in arql-0.3.5
- old
+ new
@@ -33,10 +33,15 @@
"(#{obj})"
else
"(#{obj}:#{nest_level})"
end
end
- "%s#{Rainbow('@').green}%s#{nest_level_prompt} [%d] %s " % [Rainbow('ARQL').red, Rainbow(App.prompt).yellow, pry_instance.input_ring.count, Rainbow('❯').green]
+ if Arql::Commands::Sandbox.enabled
+ sandbox_indicator = ' [%s] ' % Rainbow('sandbox').green.bright
+ else
+ sandbox_indicator = ''
+ end
+ "%s#{Rainbow('@').green}%s%s#{nest_level_prompt} [%d] %s " % [Rainbow('ARQL').red, Rainbow(App.prompt).yellow, sandbox_indicator, pry_instance.input_ring.count, Rainbow('❯').green]
end]
end
end
end