summaryrefslogtreecommitdiff
path: root/doc/forum/Using_propellor_for_continers_only/comment_1_95e8b7103f248d93570fecb6b8999996._comment
blob: dc6cc6160b56d1244509e90abccba011c1b60cef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2017-03-29T19:09:37Z"
 content="""
Sounds like you may want to write a program that uses propellor as a
library. `Propellor.Engine.mainProperties` is a reasonable
entry point, just pass it a Host that has the properties you want
to run.

For example:

	import Propellor
	import Propellor.Engine
	import Propellor.Property.DiskImage

	main :: IO ()
	main = mainProperties $ host "whatever" $ props
		& imageBuilt "/some/disk.img" ...
"""]]