Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: renaming logcraft-cli crates name #21

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 58 additions & 58 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ figment = { version = "0.10", features = ["yaml", "env"] }
envsubst = "0.2"

# Local dependencies
logcraft-common = { path = "crates/common", version = "0.1.3" }
logcraft-runtime = { path = "crates/runtime", version = "0.1.3" }
lgc-common = { path = "crates/common", version = "0.1.3" }
lgc-runtime = { path = "crates/runtime", version = "0.1.3" }

[target.x86_64-unknown-linux-gnu.dependencies]
openssl = { version = "0.10", features = ["vendored"] }
Expand Down
4 changes: 2 additions & 2 deletions crates/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: MPL-2.0

[package]
name = "logcraft-common"
name = "lgc-common"
description = "LogCraft common utilities"
version.workspace = true
authors.workspace = true
Expand Down Expand Up @@ -44,4 +44,4 @@ regex = "1.10"
serde_with = "3.8"

# Local dependencies
logcraft-runtime = { path = "../runtime" }
lgc-runtime = { path = "../runtime" }
2 changes: 1 addition & 1 deletion crates/common/src/plugins/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use anyhow::{anyhow, bail, Result};
use async_trait::async_trait;
use logcraft_runtime::{
use lgc_runtime::{
plugin_component::plugin::Metadata, state::State, Config, Engine, Plugins,
DEFAULT_EPOCH_TICK_INTERVAL,
};
Expand Down
2 changes: 1 addition & 1 deletion crates/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: MPL-2.0

[package]
name = "logcraft-runtime"
name = "lgc-runtime"
version.workspace = true
authors.workspace = true
edition.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions src/bin/lgc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ use lgc::commands::{
environments::EnvironmentsCommands, init::InitCommand, plugins::PluginsCommands,
services::ServicesCommands, validate::ValidateCommand,
};
use logcraft_common::configuration::{ProjectConfiguration, LGC_CONFIG_PATH};
use logcraft_common::utils::env_forbidden_chars;
use lgc_common::configuration::{ProjectConfiguration, LGC_CONFIG_PATH};
use lgc_common::utils::env_forbidden_chars;
use std::collections::HashMap;
use std::path::PathBuf;
use std::{env, fs};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use anyhow::{anyhow, bail, Result};
use clap::Parser;
use console::style;
use dialoguer::{theme::ColorfulTheme, Confirm, Select};
use logcraft_common::{
use lgc_common::{
configuration::{Environment, ProjectConfiguration, Service},
detections::{compare_detections, map_plugin_detections, DetectionState, ServiceDetections},
plugins::manager::{PluginActions, PluginManager},
Expand Down
2 changes: 1 addition & 1 deletion src/commands/destroy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use anyhow::{anyhow, bail, Result};
use clap::Parser;
use console::style;
use dialoguer::{theme::ColorfulTheme, Confirm, Select};
use logcraft_common::{
use lgc_common::{
configuration::{Environment, ProjectConfiguration, Service},
plugins::manager::{PluginActions, PluginManager},
};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use anyhow::{anyhow, Result};
use clap::Parser;
use console::style;
use dialoguer::{theme::ColorfulTheme, Select};
use logcraft_common::{
use lgc_common::{
configuration::{Environment, ProjectConfiguration, Service},
detections::{
compare_detections, map_plugin_detections, DetectionState, PluginDetections,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/environments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use anyhow::{anyhow, bail, Ok, Result};
use clap::{Parser, Subcommand};
use console::style;
use dialoguer::{theme::ColorfulTheme, Input, Select};
use logcraft_common::{
use lgc_common::{
configuration::{Environment, ProjectConfiguration},
utils::ensure_kebab_case,
};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use anyhow::{bail, Result};
use clap::Parser;
use logcraft_common::configuration::{ProjectConfiguration, LGC_CONFIG_PATH, LGC_RULES_DIR};
use lgc_common::configuration::{ProjectConfiguration, LGC_CONFIG_PATH, LGC_RULES_DIR};
use std::{
env::current_dir,
fmt::Debug,
Expand Down
4 changes: 2 additions & 2 deletions src/commands/plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use anyhow::{anyhow, bail, Result};
use clap::{Parser, Subcommand};
use console::style;
use dialoguer::{theme::ColorfulTheme, Confirm, Input, Select};
use logcraft_common::{
use lgc_common::{
configuration::ProjectConfiguration,
plugins::{
cleanup_plugin, determine_plugin_location,
Expand Down Expand Up @@ -166,7 +166,7 @@ impl UninstallPlugin {
if !self.force
&& !services.is_empty()
&& !Confirm::with_theme(&prompt_theme)
.with_prompt(&format!(
.with_prompt(format!(
"This plugin is used in `{}` services(s), force removal ?",
style(services.join(", ")).red()
))
Expand Down
2 changes: 1 addition & 1 deletion src/commands/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use clap::{Parser, Subcommand};
use console::style;
use dialoguer::{theme::ColorfulTheme, Confirm, Input, Select};
use indicatif::{ProgressBar, ProgressStyle};
use logcraft_common::{
use lgc_common::{
configuration::{ProjectConfiguration, Service},
plugins::manager::{PluginActions, PluginManager},
utils,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use clap::Parser;
use kclvm_api::{gpyrpc::ValidateCodeArgs, service::KclvmServiceImpl};
use tokio::task::JoinSet;

use logcraft_common::{
use lgc_common::{
configuration::ProjectConfiguration,
detections::map_plugin_detections,
plugins::manager::{PluginActions, PluginManager},
Expand Down