Skip to content

Commit

Permalink
[ISSUE #1986]🍻Add Action for tui🚀 (#1991)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm authored Jan 1, 2025
1 parent 813f686 commit a97e28b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions rocketmq-tui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ tokio.workspace = true
tokio-stream = { workspace = true }

anyhow = { workspace = true }
serde = { workspace = true, features = ["derive"] }
strum = { workspace = true, features = ["derive"] }
24 changes: 24 additions & 0 deletions rocketmq-tui/src/action.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use serde::Deserialize;
use serde::Serialize;
use strum::Display;

#[derive(Debug, Clone, PartialEq, Serialize, Display, Deserialize)]
pub enum Action {
Quit,
}
1 change: 1 addition & 0 deletions rocketmq-tui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#![allow(unused_mut)]
#![allow(unused_variables)]

mod action;
mod rocketmq_tui_app;
mod ui;

Expand Down

0 comments on commit a97e28b

Please # to comment.