Skip to content
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
2 changes: 2 additions & 0 deletions src/commands/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use crate::core::config::get_resource_type;
use crate::core::utils::catch_error_and_exit;
use crate::utils::connection::create_client;
use crate::utils::display::{print_unicode_box, BorderColor};
use crate::utils::server::check_and_start_server;

/// Defines the `build` command for the CLI application.
pub fn command() -> Command {
Expand Down Expand Up @@ -56,6 +57,7 @@ pub fn execute(matches: &ArgMatches) {
let on_failure_val = matches.get_one::<FailureAction>("on-failure").unwrap();
let output_file = matches.get_one::<String>("output-file");

check_and_start_server();
let client = create_client();
let mut runner = CommandRunner::new(
client,
Expand Down
2 changes: 2 additions & 0 deletions src/commands/teardown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use crate::core::config::get_resource_type;
use crate::core::utils::catch_error_and_exit;
use crate::utils::connection::create_client;
use crate::utils::display::{print_unicode_box, BorderColor};
use crate::utils::server::check_and_start_server;

/// Configures the `teardown` command for the CLI application.
pub fn command() -> Command {
Expand Down Expand Up @@ -47,6 +48,7 @@ pub fn execute(matches: &ArgMatches) {
let is_show_queries = matches.get_flag("show-queries");
let on_failure_val = matches.get_one::<FailureAction>("on-failure").unwrap();

check_and_start_server();
let client = create_client();
let mut runner = CommandRunner::new(
client,
Expand Down
2 changes: 2 additions & 0 deletions src/commands/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use crate::core::config::get_resource_type;
use crate::core::utils::catch_error_and_exit;
use crate::utils::connection::create_client;
use crate::utils::display::{print_unicode_box, BorderColor};
use crate::utils::server::check_and_start_server;

/// Configures the `test` command for the CLI application.
pub fn command() -> Command {
Expand Down Expand Up @@ -56,6 +57,7 @@ pub fn execute(matches: &ArgMatches) {
let on_failure_val = matches.get_one::<FailureAction>("on-failure").unwrap();
let output_file = matches.get_one::<String>("output-file");

check_and_start_server();
let client = create_client();
let mut runner = CommandRunner::new(
client,
Expand Down
Loading