feat: Working on moving commands to cli-client
This commit is contained in:
19
Sources/hpa/Internal/PlaybookOptions+Globals.swift
Normal file
19
Sources/hpa/Internal/PlaybookOptions+Globals.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
import CliClient
|
||||
import ConfigurationClient
|
||||
|
||||
extension GlobalOptions {
|
||||
|
||||
func playbookOptions(
|
||||
arguments: [String],
|
||||
configuration: Configuration?
|
||||
) -> CliClient.PlaybookOptions {
|
||||
.init(
|
||||
arguments: arguments,
|
||||
configuration: configuration,
|
||||
inventoryFilePath: inventoryPath,
|
||||
playbookDirectory: playbookDir,
|
||||
quiet: quietOnlyPlaybook ? true : basic.quiet,
|
||||
shell: basic.shell
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user