cloudfoundry / cloudfoundry/cli

Feature Request: Allow app devs to pass a -s and -o flag to `cf push`

Open
#1,413 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement unscheduled
Dominant language
Go
Stars
1.9k
Forks
990
Avg merge
1d 7h
Merged PRs (30d)
8

Description

Command

  • cf push
  • but could be extended to any command on an app that changes state (cf restart, cf restage, cf map-route, unmap-route, set-env, start, stop, run-task)

What

Allow for cf push my-app -s my-space -o my-org so that I am always sure that I am targeting the correct environment when I push

Why

  • scripts that run (concurrently)
  • eliminates human error

Note: From a slack conversation: https://cloudfoundry.slack.com/archives/C032824SM/p1523331763000112

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing argument parsing for cf push and the listed state-changing commands, then check the linked Slack discussion for prior context. Done means defining consistent -s and -o targeting behavior across the requested commands and covering that behavior with tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.