From d0483b0434d3937aac80bcf8062f32f124a84158 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 11 Feb 2023 15:51:26 +0100 Subject: [PATCH] format code --- crates/dagger-codegen/src/handlers/object.rs | 44 +++++++++++++------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/crates/dagger-codegen/src/handlers/object.rs b/crates/dagger-codegen/src/handlers/object.rs index 114fdec..9d1d25c 100644 --- a/crates/dagger-codegen/src/handlers/object.rs +++ b/crates/dagger-codegen/src/handlers/object.rs @@ -114,27 +114,40 @@ impl CacheVolume { #[test] fn can_render_query_container() { + let description = "Loads a container from ID.\nNull ID returns an empty container (scratch).\nOptional platform argument initializes new containers to execute and publish as that platform. Platform defaults to that of the builder's host.".into(); + let t: FullType = FullType { kind: Some(__TypeKind::OBJECT), name: Some("Query".into()), description: None, fields: Some(vec![FullTypeFields { name: Some("container".into()), - description: Some("Loads a container from ID.\nNull ID returns an empty container (scratch).\nOptional platform argument initializes new containers to execute and publish as that platform. Platform defaults to that of the builder's host.".into()), - args: Some( - vec![ - Some( - FullTypeFieldsArgs - { - input_value: InputValue { name: "id".into(), description: None, type_: TypeRef { kind: Some(__TypeKind::SCALAR), name: Some("ContainerID".into()), of_type: None }, default_value: None } - } - ), - Some( - FullTypeFieldsArgs { + description: Some(description), + args: Some(vec![ + Some(FullTypeFieldsArgs { input_value: InputValue { - name: "platform".into(), description: None, type_: TypeRef { kind: Some(__TypeKind::SCALAR), name: Some("Platform".into()), of_type: None }, - default_value: None } - }) + name: "id".into(), + description: None, + type_: TypeRef { + kind: Some(__TypeKind::SCALAR), + name: Some("ContainerID".into()), + of_type: None, + }, + default_value: None, + }, + }), + Some(FullTypeFieldsArgs { + input_value: InputValue { + name: "platform".into(), + description: None, + type_: TypeRef { + kind: Some(__TypeKind::SCALAR), + name: Some("Platform".into()), + of_type: None, + }, + default_value: None, + }, + }), ]), type_: Some(FullTypeFieldsType { type_ref: TypeRef { @@ -149,8 +162,7 @@ impl CacheVolume { }), is_deprecated: Some(false), deprecation_reason: None, - } - ]), + }]), input_fields: None, interfaces: None, enum_values: None,