mirror of
https://github.com/apple/pkl.git
synced 2026-07-07 21:45:22 +02:00
Add details to show amending working when using modules
Running through the tutorial, the amending was stated in the tutorial text but not visible in the tutorial output since `parrot.pkl` was replacing all the members of `pigeon.pkl`.
This commit is contained in:
committed by
Philip K.F. Hölzenspies
parent
aa98123c93
commit
14dec716cf
@@ -206,6 +206,8 @@ Going back to the example above, you can write `parrot` as a separate module.
|
|||||||
name = "Common wood pigeon"
|
name = "Common wood pigeon"
|
||||||
diet = "Seeds"
|
diet = "Seeds"
|
||||||
taxonomy {
|
taxonomy {
|
||||||
|
kingdom = "Animalia"
|
||||||
|
clade = "Dinosauria"
|
||||||
species = "Columba palumbus"
|
species = "Columba palumbus"
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
@@ -236,6 +238,8 @@ $ pkl eval /Users/me/tutorial/pigeon.pkl
|
|||||||
name = "Common wood pigeon"
|
name = "Common wood pigeon"
|
||||||
diet = "Seeds"
|
diet = "Seeds"
|
||||||
taxonomy {
|
taxonomy {
|
||||||
|
kingdom = "Animalia"
|
||||||
|
clade = "Dinosauria"
|
||||||
species = "Columba palumbus"
|
species = "Columba palumbus"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -244,6 +248,8 @@ parrot {
|
|||||||
name = "Great green macaw"
|
name = "Great green macaw"
|
||||||
diet = "Berries"
|
diet = "Berries"
|
||||||
taxonomy {
|
taxonomy {
|
||||||
|
kingdom = "Animalia"
|
||||||
|
clade = "Dinosauria"
|
||||||
species = "Ara ambiguus"
|
species = "Ara ambiguus"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user