Skip to content

Commit

Permalink
push to cloud on remote set, deploy, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
loganwright committed Nov 6, 2018
1 parent f5dbcc2 commit b625727
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/CloudCommands/Git/RemoteGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,16 @@ struct RemoteSet: Command {
ctx.console.output("Cloud repository configured.")
// TODO:
// Load environments and push branches?
ctx.console.pushEphemeral()
let push = ctx.console.confirm("Would you like to push to now?")
ctx.console.popEphemeral()
guard push else { return }

ctx.console.pushEphemeral()
ctx.console.output("Pushing `master` to cloud...")
try Git.pushCloud(branch: "master")
ctx.console.popEphemeral()
ctx.console.output("Pushed `master` to cloud.")
}
}

Expand Down

0 comments on commit b625727

Please sign in to comment.