github.com/solo-io/cue@v0.4.7/cue/testdata/packages/sub.txtar (about)

     1  cue eval ./pkg:foo
     2  
     3  -- cue.mod/module.cue --
     4  module: "example.com"
     5  
     6  -- in.cue --
     7  package test
     8  
     9  import pkg2 "example.com/foo/pkg1"
    10  #pkg1: pkg2.Object
    11  
    12  "Hello \(#pkg1)!"
    13  
    14  -- foo/pkg1/file.cue --
    15  package pkg1
    16  
    17  Object: "World"
    18  
    19  -- out/eval --
    20  (string){
    21    "Hello World!"
    22    #pkg1: (string){ "World" }
    23  }
    24  -- out/compile --
    25  --- in.cue
    26  {
    27    #pkg1: 〈import;"example.com/foo/pkg1"〉.Object
    28    "Hello \(〈0;#pkg1〉)!"
    29  }