-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from azriel91/feature/35/profile-show
- Loading branch information
Showing
67 changed files
with
1,455 additions
and
1,031 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
- name: 'Install `wasm-pack`' | ||
uses: jetli/[email protected] | ||
with: | ||
version: 'latest' | ||
version: 'v0.10.3' | ||
|
||
- name: mdbook-graphviz Cache | ||
id: mdbook_graphviz_cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,7 +162,7 @@ jobs: | |
- name: 'Install `wasm-pack`' | ||
uses: jetli/[email protected] | ||
with: | ||
version: 'latest' | ||
version: 'v0.10.3' | ||
|
||
- name: 'Build examples' | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
use crate::paths::{FlowDir, ProfileDir, ProfileHistoryDir}; | ||
|
||
/// Directories used during `peace` execution. | ||
/// | ||
/// This type itself is not inserted into `Resources`, but each of the member | ||
/// directories are individually inserted. This is created by | ||
/// `CmdDirsBuilder` from either the `peace_rt_model` or | ||
/// `peace_rt_model_web` crates. | ||
#[derive(Clone, Debug, PartialEq, Eq)] | ||
pub struct CmdDirs { | ||
/// Directory to store data for the current profile. | ||
profile_dir: ProfileDir, | ||
/// Directory to store profile executions' summaries. | ||
profile_history_dir: ProfileHistoryDir, | ||
/// Directory to store data for the current flow. | ||
flow_dir: FlowDir, | ||
} | ||
|
||
impl CmdDirs { | ||
/// Returns new `CmdDirs`. | ||
pub fn new( | ||
profile_dir: ProfileDir, | ||
profile_history_dir: ProfileHistoryDir, | ||
flow_dir: FlowDir, | ||
) -> Self { | ||
Self { | ||
profile_dir, | ||
profile_history_dir, | ||
flow_dir, | ||
} | ||
} | ||
|
||
/// Returns the individual command directories. | ||
pub fn into_inner(self) -> (ProfileDir, ProfileHistoryDir, FlowDir) { | ||
let Self { | ||
profile_dir, | ||
profile_history_dir, | ||
flow_dir, | ||
} = self; | ||
|
||
(profile_dir, profile_history_dir, flow_dir) | ||
} | ||
|
||
/// Returns a reference to the profile directory. | ||
pub fn profile_dir(&self) -> &ProfileDir { | ||
&self.profile_dir | ||
} | ||
|
||
/// Returns a reference to the profile history directory. | ||
pub fn profile_history_dir(&self) -> &ProfileHistoryDir { | ||
&self.profile_history_dir | ||
} | ||
|
||
/// Returns a reference to the flow directory. | ||
pub fn flow_dir(&self) -> &FlowDir { | ||
&self.flow_dir | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//! Command related types. | ||
pub use self::{ | ||
cmd_context::CmdContext, cmd_context_builder::CmdContextBuilder, | ||
cmd_dirs_builder::CmdDirsBuilder, | ||
}; | ||
|
||
pub mod ts; | ||
|
||
mod cmd_context; | ||
mod cmd_context_builder; | ||
mod cmd_dirs_builder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.