Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions src/Terrabuild/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,22 @@ let processCommandLine (parser: ArgumentParser<TerrabuildArgs>) (result: ParseRe
runTarget options

let graph (graphArgs: ParseResults<GraphArgs>) =
"Press Ctrl+C to exit graph server mode." |> Terminal.writeLine
Terminal.flush()
Terminal.mute()
GraphServer.start graphArgs (log || debug) debug |> ignore
Terminal.unmute()
0
let workspaceResult =
match graphArgs.TryGetResult(GraphArgs.Workspace) with
| Some ws -> findWorkspace (ws |> FS.fullPath)
| None -> findWorkspace (currentDir())
match workspaceResult with
| None ->
"No workspace found. Start Terrabuild graph from a workspace directory or pass -w <path>."
|> Terminal.writeLine
5
| Some _ ->
"Press Ctrl+C to exit graph server mode." |> Terminal.writeLine
Terminal.flush()
Terminal.mute()
GraphServer.start graphArgs (log || debug) debug |> ignore
Terminal.unmute()
0

let logs (logsArgs: ParseResults<LogsArgs>) =
let targets = logsArgs.GetResult(LogsArgs.Target) |> Seq.map String.toLower
Expand Down