Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: New subcommand for listing applications #1280

Closed
Tracked by #1276
javorszky opened this issue May 20, 2024 · 1 comment
Closed
Tracked by #1276

CLI: New subcommand for listing applications #1280

javorszky opened this issue May 20, 2024 · 1 comment
Assignees

Comments

@javorszky
Copy link
Contributor

A new command unitctl app list or unitctl apps list (I propose both singular and plural would work here, but not with restarting the app).

Related to #1279.

Given the following unit json:

{
    "applications": {
        "hello-world": {
            "type": "php",
            "root": "/www/hw/public/",
            "script": "index.php",
            "environment": {
                "PHP_INI_SCAN_DIR": ":/tmp/php.inis/"
            }
        },
        "other-one": {
            "type": "php",
            "root": "/www/oo/public/",
            "script": "index.php",
            "environment": {
                "PHP_INI_SCAN_DIR": ":/tmp/php.inis/"
            }
        }
    }
}

The output of unitctl app list would be

hello-world
  type: php
  root: /www/hw/public
  script: index.php
  environment:
    PHP_INI_SCAN_DIR: /tmp/php.inis

other-one
  type: php
  root: /www/oo/public/
  script: index.php
  environment:
    PHP_INI_SCAN_DIR: /tmp/php.inis/
@callahad
Copy link
Collaborator

Resolved in #1323

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

No branches or pull requests

4 participants