Skip to content

Commit

Permalink
CLI-938: namespace -> group
Browse files Browse the repository at this point in the history
  • Loading branch information
BohuTANG committed Aug 5, 2021
1 parent aa9b6d5 commit df79bbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fusecli/cli/src/cmds/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use structopt::StructOpt;

#[derive(Clone, Debug, PartialEq, StructOpt, Default)]
pub struct Config {
#[structopt(long, env = "NAMESPACE", default_value = "test")]
pub namespace: String,
#[structopt(long, env = "GROUP", default_value = "test")]
pub group: String,

#[structopt(long, env = "DATAFUSE_DIR", default_value = ".datafuse")]
pub datafuse_dir: String,
Expand Down Expand Up @@ -41,7 +41,7 @@ impl Config {
fn build(mut conf: Config) -> Self {
let home_dir = dirs::home_dir().unwrap();
let datafuse_dir = home_dir.join(".datafuse");
conf.datafuse_dir = format!("{}/{}", datafuse_dir.to_str().unwrap(), conf.namespace);
conf.datafuse_dir = format!("{}/{}", datafuse_dir.to_str().unwrap(), conf.group);
conf
}
}
2 changes: 1 addition & 1 deletion fusecli/cli/src/cmds/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct Env {

impl Env {
pub fn create(conf: Config) -> Self {
let namespace = conf.namespace.clone();
let namespace = conf.group.clone();
Env {
conf,
prompt: format!("[{}] > ", namespace.green()),
Expand Down

0 comments on commit df79bbe

Please sign in to comment.