@@ 123-132 (lines=10) @@ | ||
120 | * @param PackageItem $package |
|
121 | * @return \Buttress\Concrete\Service\Result |
|
122 | */ |
|
123 | public function show(PackageItem $package, CLImate $cli) |
|
124 | { |
|
125 | if (!$this->connection->isConnected()) { |
|
126 | return new Result(false, 'Not connected to concrete5 site.'); |
|
127 | } |
|
128 | ||
129 | $cli->flank($package->getHandle()); |
|
130 | $cli->out($package->isInstalled() ? 'Installed Version ' : 'Not Installed: '); |
|
131 | $cli->bold()->inline($package->getVersion()); |
|
132 | } |
|
133 | ||
134 | /** |
|
135 | * Get a list of package item objects |
@@ 149-158 (lines=10) @@ | ||
146 | * @param \League\CLImate\CLImate $cli |
|
147 | * @return \Buttress\Concrete\Service\Result |
|
148 | */ |
|
149 | public function show(PackageItem $package, CLImate $cli) |
|
150 | { |
|
151 | if (!$this->connection->isConnected()) { |
|
152 | return new Result(false, 'Not connected to concrete5 site.'); |
|
153 | } |
|
154 | ||
155 | $cli->flank($package->getHandle()); |
|
156 | $cli->out($package->isInstalled() ? 'Installed Version ' : 'Not Installed: '); |
|
157 | $cli->bold()->inline($package->getVersion()); |
|
158 | } |
|
159 | ||
160 | /** |
|
161 | * Get a list of package item objects |