cloudfoundry / cloudfoundry/cli

cf logs add support for manifest files

Open
#2,143 2 comments 2 reactions 1 assignee View on GitHub

@gururajsh is already working on this.

Since Sep 20, 2024.

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

Description

Please provide details on the following items. Failure to do so may result in deletion of your feature request.

What's the user value of this feature request?
A quick way to tail the logs without needing to add the app name, enabling faster development, more reliably picking up the name of the app you pushed with and easier scripting

Who is the functionality for?
Developer productivity

How often will this functionality be used by the user?
Daily

Who else is affected by the change?
Net addition

Is your feature request related to a problem? Please describe.
cf logs <APP_NAME> is a pain to script and a bit slow to type out.
It would be great if we could do cf push and have it take the default manifest as it does for cf push

Describe the solution you'd like
cf logs uses the same logic as cf push , checking for a default manifest.yml or -f to take a custom named manifest.yml file

Describe alternatives you've considered
I use the below bat script to quick build/deploy but it doesnt work if the dir name is different from manifest. It might be possible to improve and parse the manifest file to extract the push name but it would be great if it was supported with the same support cf push has.
`@echo on
CALL gradlew clean build -x test
for %%I in (.) do set CurrDirName=%%~nxI
echo %CurrDirName%

CALL cf push
CALL cf logs %CurrDirName%`

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.