Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

support default manifest path and application name like cf push does #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cmloegcmluin
Copy link

We use the autopilot plugin and think it's great, but thought it would be greater if we didn't need to specify the app name or manifest path if:

  • it is run from the the app directory
  • a manifest.yml with an application with an app name exists.

That way, cf push could be swapped out for zero-downtime-push with no changes.

We are Pivots from Pivotal Tokyo on the beach and are new to Go, so we may not have written the most idiomatic code. We also used some CF CLI internals; it seemed appropriate but again not quite sure. Happy for any feedback.

Douglas Blumeyer & Robert Gravina

rgravina and others added 2 commits October 3, 2017 12:11
- CF CLI properly defaults this
- update test to reflect that CF CLI also properly defaults the app path flag

Signed-off-by: Douglas Blumeyer <[email protected]>
… CLI).

- Assumes app name does not start with '-'.
- Assumes manifest is well-formed.
- Uses first app in manifest if multiple are found (like CF CLI).
- If name provided, and name found in manifest, name provided takes precedence (like CF CLI).
- See contraband#32

Signed-off-by: Robert Gravina <[email protected]>
@xoebus
Copy link
Contributor

xoebus commented Dec 14, 2017

Thank you for submitting this! I'm sorry for the delay. I'll try and get around to reviewing it soon.

@zachberger
Copy link

@xoebus Any update on this?

@xoebus
Copy link
Contributor

xoebus commented Mar 27, 2018

Hi @zachberger, sorry I haven't had a chance to get to this yet. Unfortunately I'm swamped for the next few weeks too. I like the feature and would probably merge it but don't have time to look into the code in detail just yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants