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

getting the current app name #701

Open
orlin opened this issue Oct 1, 2015 · 0 comments
Open

getting the current app name #701

orlin opened this issue Oct 1, 2015 · 0 comments

Comments

@orlin
Copy link

orlin commented Oct 1, 2015

Because I pushed my pre-existing git repo, I often get the You must specify an application with -a, or run this command from within Git directory cloned from OpenShift. message, which got me thinking that it's possible to guess the app name in a number of ways. Here are a few possibilities:

  1. from the dir name (whether current or nearest) -- the dir containing the app is usually named, I suppose, either exactly the same or else appname.tld / appname.domain.tld
  2. an "openshift" remote of the nearest git repo
  3. a matching project name coming from a file such as package.json

If there is nothing that can be matched by convention, then one could set the app name via configuration, a .rhc-rc or whatever you prefer. A configuration file would of-course take precedence over guessing, and an explicit app name via the cli would probably take precedence over the nearest config.

Any of this would make rhc so much more joy to use.

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

No branches or pull requests

1 participant