You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
The `devbox info` command is quite old and outdated.
1. It returns results inconsistent with the `devbox search` results. It
also doesn't print much useful information except a poorly formatted
package-name and version.
2. Some users have asked in the past for understanding what a particular
package in the search results is for.
This PR leverages the search service's API to get the package
information, and also prints a summary of the package.
## How was it tested?
BEFORE:
```
> devbox info go
go-1.20.2
> devbox info [email protected]
Ensuring nixpkgs registry is downloaded.
Downloaded 'github:NixOS/nixpkgs/1c6eb4876f71e8903ae9f73e6adf45fdbebc0292' to '/nix/store/y3kz7n62fwvp331na0k17xdw4dyaa66d-source' (hash 'sha256-hI7+s1UVDsJNqNn9UGV6xTBGqMC4dqOyVpeDf+su7JU=').
Ensuring nixpkgs registry is downloaded: Success
go-1.19.2
> devbox info php
php-with-extensions-8.1.17
php NOTES:
PHP is compiled with default extensions. If you would like to use non-default extensions you can add them with devbox add php81Extensions.{extension} . For example, for the memcache extension you can do `devbox add php81Extensions.memcached`.
Error: open /Users/savil/code/jetpack/devbox/.devbox/virtenv/php/process-compose.yaml: no such file or directory
```
AFTER:
```
> devbox info go
go 1.20.6
The Go Programming language
> devbox info [email protected]
go 1.19.2
The Go Programming language
> devbox info php
php 8.2.8
An HTML-embedded scripting language
php NOTES:
PHP is compiled with default extensions. If you would like to use non-default extensions you can add them with devbox add php81Extensions.{extension} . For example, for the memcache extension you can do `devbox add php81Extensions.memcached`.
Error: open /Users/savil/code/jetpack/devbox/.devbox/virtenv/php/process-compose.yaml: no such file or directory
```
NOTE: the error with `devbox info php` still needs fixing...
0 commit comments