8000 include · mfoemmel/fig Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Elliot Shank edited this page Apr 12, 2017 · 10 revisions

include

Can be used in two ways: to combine configurations and to declare package dependencies.

Syntax

config something
    include package-descriptor
end

Where package-descriptor is a package descriptor. No quoting or escaping of the descriptor is allowed.

Can also be specified on the command-line via the --include option.

There is no difference in syntax between grammar versions.

Pull one configuration into another

You can get the effects of one configuration in another by using the name of the other configuration preceded by a colon:

config a
    include :b
end

config b
    ...
end

If you're familiar with Bourne-shell scripting, you can think of an include as the equivalent of sourcing another script.

Declare a package dependency

States that one package should be installed prior to the current one; can specify a configuration in the other package.

config default
    include somepackage/1.2.3:some_non_default_configuration
end

Note that the configuration from the other package will be incorporated into the including configuration as above; if no configuration is specified in the package descriptor, a configuration named "default" will be looked for.

Version conflicts of included packages by included packages can be resolved by override statements.

Clone this wiki locally
0