Skip to content

Commit

Permalink
fix typo in CONTRIBUTING, add output struct back in
Browse files Browse the repository at this point in the history
  • Loading branch information
gserena01 committed Dec 18, 2023
1 parent 9e39b41 commit 6df4ac1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Adding a new modeling command

- In `each_command.rs` add your new `struct MyNewCommand` with one field for each parameter the command has.
- In `each_cmd.rs` add your new `struct MyNewCommand` with one field for each parameter the command has.
- In `def_enum.rs` add a new variant of `ModelingCmd` with your type, e.g. `MyNewCommand(MyNewCommand)`.
- If your command responds with data:
- In `output.rs`, add a `struct MyNewCommand` following the existing examples.
Expand Down
9 changes: 8 additions & 1 deletion modeling-cmds/src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{
id::ModelingCmdId,
shared::{CurveType, EntityType, ExportFile, PathCommand, Point2d, Point3d},
traits::ModelingCmdOutput,
units, EntityLinearPattern,
units,
};

/// The response from the `Export` endpoint.
Expand Down Expand Up @@ -256,6 +256,13 @@ pub struct EntityGetDistance {
pub max_distance: f64,
}

/// The response from the `EntityLinearPattern` command.
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
pub struct EntityLinearPattern {
/// The UUIDs of the entities that were created.
pub entity_ids: Vec<Uuid>,
}

impl ModelingCmdOutput for Export {}
impl ModelingCmdOutput for SelectWithPoint {}
impl ModelingCmdOutput for HighlightSetEntity {}
Expand Down

0 comments on commit 6df4ac1

Please sign in to comment.