mirror of
https://github.com/storytold/cadcraft.git
synced 2026-10-27 04:16:48 -06:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb6311f151 | ||
|
|
cafb6332e7 |
@@ -13,7 +13,8 @@ use cadcraft_geom::{TAU, Vec2, Vec3, ccw_sweep, norm_angle};
|
|||||||
use serde_json::{Value, json};
|
use serde_json::{Value, json};
|
||||||
|
|
||||||
use super::machines::{SelOutcome, SelectPhase, number};
|
use super::machines::{SelOutcome, SelectPhase, number};
|
||||||
use super::*;
|
use super::{CommandSpec, bad, targets};
|
||||||
|
|
||||||
use crate::{Accept, Input, Interactive, Prompt, Result, Session, Step};
|
use crate::{Accept, Input, Interactive, Prompt, Result, Session, Step};
|
||||||
|
|
||||||
pub fn specs() -> Vec<CommandSpec> {
|
pub fn specs() -> Vec<CommandSpec> {
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ use cadcraft_doc::{DevicePaper, Orientation, PageSetup, PlotOutput, PlotterConfi
|
|||||||
use cadcraft_geom::{Bounds2, Vec2};
|
use cadcraft_geom::{Bounds2, Vec2};
|
||||||
use serde_json::{Value, json};
|
use serde_json::{Value, json};
|
||||||
|
|
||||||
use super::*;
|
use super::{CommandSpec, Result, always, bad, has_doc, point_req, str_param};
|
||||||
|
|
||||||
use crate::{Accept, EngineError, Input, Interactive, Prompt, Session, Step};
|
use crate::{Accept, EngineError, Input, Interactive, Prompt, Session, Step};
|
||||||
|
|
||||||
/// Where plotter configuration files live. Names are file names ending in
|
/// Where plotter configuration files live. Names are file names ending in
|
||||||
|
|||||||
@@ -10,7 +10,8 @@ use cadcraft_doc::{EntityKind, Lineweight, Transparency};
|
|||||||
use cadcraft_geom::Vec3;
|
use cadcraft_geom::Vec3;
|
||||||
use serde_json::{Value, json};
|
use serde_json::{Value, json};
|
||||||
|
|
||||||
use super::*;
|
use super::{CommandSpec, always, bad, bool_or, f64_req, find_command, ok, point_req, point_value, str_param, targets};
|
||||||
|
|
||||||
use crate::{Accept, Input, Interactive, Prompt, Result, Session, Step};
|
use crate::{Accept, Input, Interactive, Prompt, Result, Session, Step};
|
||||||
|
|
||||||
pub fn specs() -> Vec<CommandSpec> {
|
pub fn specs() -> Vec<CommandSpec> {
|
||||||
@@ -1177,10 +1178,9 @@ fn run_rename(s: &mut Session, p: &Value) -> Result<Value> {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
use super::*;
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
|
||||||
use crate::Session;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn properties_set_rejects_unloaded_linetype() {
|
fn properties_set_rejects_unloaded_linetype() {
|
||||||
let mut s = Session::new();
|
let mut s = Session::new();
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ use serde_json::{Value, json};
|
|||||||
|
|
||||||
use super::super::helpers::support_text;
|
use super::super::helpers::support_text;
|
||||||
use super::super::qselect::wildcard;
|
use super::super::qselect::wildcard;
|
||||||
use super::*;
|
use super::{Result, Session, bad, bool_or, str_param};
|
||||||
|
|
||||||
use crate::{Accept, Input, Interactive, Prompt, Step};
|
use crate::{Accept, Input, Interactive, Prompt, Step};
|
||||||
|
|
||||||
/// Names no file may define: they are not linetype definitions.
|
/// Names no file may define: they are not linetype definitions.
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
use cadcraft_doc::{Entity, EntityKind, Handle};
|
use cadcraft_doc::{Entity, EntityKind, Handle};
|
||||||
use serde_json::{Value, json};
|
use serde_json::{Value, json};
|
||||||
|
|
||||||
use super::super::*;
|
use super::super::{bad, targets};
|
||||||
|
|
||||||
use crate::{Accept, Input, Interactive, Prompt, Result, Session, Step};
|
use crate::{Accept, Input, Interactive, Prompt, Result, Session, Step};
|
||||||
|
|
||||||
/// Which properties MATCHPROP copies (its Settings).
|
/// Which properties MATCHPROP copies (its Settings).
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ use cadcraft_color::Color;
|
|||||||
use cadcraft_doc::{Drawing, Entity, Handle};
|
use cadcraft_doc::{Drawing, Entity, Handle};
|
||||||
use serde_json::{Value, json};
|
use serde_json::{Value, json};
|
||||||
|
|
||||||
use super::*;
|
use super::{CommandSpec, bad, str_param};
|
||||||
|
|
||||||
use crate::{Result, Session};
|
use crate::{Result, Session};
|
||||||
|
|
||||||
pub fn specs() -> Vec<CommandSpec> {
|
pub fn specs() -> Vec<CommandSpec> {
|
||||||
@@ -320,9 +321,8 @@ fn run_info(s: &mut Session, p: &Value) -> Result<Value> {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use serde_json::json;
|
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
use serde_json::json;
|
||||||
|
|
||||||
fn session() -> Session {
|
fn session() -> Session {
|
||||||
let mut s = Session::new();
|
let mut s = Session::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user