Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
picodata
Commits
4184b61b
Commit
4184b61b
authored
1 year ago
by
Егор Ивков
Browse files
Options
Downloads
Patches
Plain Diff
feat: display picodata> in interactive prompt
parent
c0f0eba5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!582
feat: display picodata> in interactive prompt
Pipeline
#19752
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib.rs
+15
-0
15 additions, 0 deletions
src/lib.rs
with
15 additions
and
0 deletions
src/lib.rs
+
15
−
0
View file @
4184b61b
...
...
@@ -295,6 +295,20 @@ fn init_handlers() {
}
}
/// Sets interactive prompt to display `picodata>`.
fn
set_console_prompt
()
{
tarantool
::
exec
(
r#"
local console = require('console')
console.on_start(function(self)
self.prompt = "picodata"
end)
"#
,
)
.expect
(
"setting prompt should never fail"
)
}
#[allow(clippy::enum_variant_names)]
#[derive(Debug,
Serialize,
Deserialize)]
pub
enum
Entrypoint
{
...
...
@@ -336,6 +350,7 @@ fn init_common(args: &args::Run, cfg: &tarantool::Cfg) -> (Clusterwide, RaftSpac
preload_http
();
init_sbroad
();
set_console_prompt
();
init_handlers
();
traft
::
event
::
init
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment