@@ -66,7 +66,7 @@ hostname: String
6666port: UInt16
6767
6868/// The environment to deploy to.
69- environment: Enviornment
69+ environment: Environment
7070
7171/// The database connection for this application
7272database: Database
@@ -88,7 +88,7 @@ class Database {
8888 dbName: String
8989}
9090
91- typealias Enviornment = "dev"|"qa"|"prod"
91+ typealias Environment = "dev"|"qa"|"prod"
9292----
9393
9494And here is how configuration data might be defined:
@@ -402,7 +402,7 @@ import PklSwift
402402public enum Application {}
403403
404404extension Application {
405- public enum Enviornment : String, CaseIterable, Decodable, Hashable {
405+ public enum Environment : String, CaseIterable, Decodable, Hashable {
406406 case dev = "dev"
407407 case qa = "qa"
408408 case prod = "prod"
@@ -418,12 +418,12 @@ extension Application {
418418 public var port: UInt16
419419
420420 /// The environment to deploy to.
421- public var environment: Enviornment
421+ public var environment: Environment
422422
423423 /// The database connection for this application
424424 public var database: Database
425425
426- public init(hostname: String, port: UInt16, environment: Enviornment , database: Database) {
426+ public init(hostname: String, port: UInt16, environment: Environment , database: Database) {
427427 self.hostname = hostname
428428 self.port = port
429429 self.environment = environment
@@ -476,7 +476,7 @@ type Application struct {
476476 Port uint16 `pkl:"port"`
477477
478478 // The environment to deploy to.
479- Environment enviornment.Enviornment `pkl:"environment"`
479+ Environment Environment.Environment `pkl:"environment"`
480480
481481 // The database connection for this application
482482 Database *Database `pkl:"database"`
@@ -511,23 +511,23 @@ type Database struct {
511511[source,go]
512512----
513513// Code generated from Pkl module `Application`. DO NOT EDIT.
514- package enviornment
514+ package Environment
515515
516516import (
517517 "encoding"
518518 "fmt"
519519)
520520
521- type Enviornment string
521+ type Environment string
522522
523523const (
524- Dev Enviornment = "dev"
525- Qa Enviornment = "qa"
526- Prod Enviornment = "prod"
524+ Dev Environment = "dev"
525+ Qa Environment = "qa"
526+ Prod Environment = "prod"
527527)
528528
529- // String returns the string representation of Enviornment
530- func (rcv Enviornment ) String() string {
529+ // String returns the string representation of Environment
530+ func (rcv Environment ) String() string {
531531 return string(rcv)
532532}
533533----
@@ -559,15 +559,15 @@ public final class Application {
559559 /**
560560 * The environment to deploy to.
561561 */
562- public final @NonNull Enviornment environment;
562+ public final @NonNull Environment environment;
563563
564564 /**
565565 * The database connection for this application
566566 */
567567 public final @NonNull Database database;
568568
569569 public Application(@Named("hostname") @NonNull String hostname, @Named("port") int port,
570- @Named("environment") @NonNull Enviornment environment,
570+ @Named("environment") @NonNull Environment environment,
571571 @Named("database") @NonNull Database database) {
572572 this.hostname = hostname;
573573 this.port = port;
@@ -612,7 +612,7 @@ public final class Application {
612612 }
613613 }
614614
615- public enum Enviornment {
615+ public enum Environment {
616616 DEV("dev"),
617617
618618 QA("qa"),
@@ -621,7 +621,7 @@ public final class Application {
621621
622622 private String value;
623623
624- private Enviornment (String value) {
624+ private Environment (String value) {
625625 this.value = value;
626626 }
627627
@@ -653,7 +653,7 @@ data class Application(
653653 /**
654654 * The environment to deploy to.
655655 */
656- val environment: Enviornment ,
656+ val environment: Environment ,
657657 /**
658658 * The database connection for this application
659659 */
@@ -682,7 +682,7 @@ data class Application(
682682 val dbName: String
683683 )
684684
685- enum class Enviornment (
685+ enum class Environment (
686686 val value: String
687687 ) {
688688 DEV("dev"),
0 commit comments