Crystal Programming by George Dietrich and Guilherme Bernal

Crystal Programming by George Dietrich and Guilherme Bernal

Author:George Dietrich and Guilherme Bernal
Language: eng
Format: epub
Publisher: Packt Publishing Ltd.
Published: 2022-05-13T00:00:00+00:00


Checking dependencies

In some cases, you may just want to ensure all the required dependencies are installed without actually installing anything new. In this case, the shards check command can be used. It will set a non-zero exit code if all dependencies are not installed as well as print some textual information to the terminal. Similarly, the shards outdated command can be used to check whether your dependencies are up to date based on your requirements.

The shards prune command can also be used to remove unused dependencies from the lib/ folder. A Shard is considered to be unused when it is no longer present within the shard.lock file.

Going back to earlier in this chapter, how can you determine which Shards are available to install in the first place? This is precisely the topic we are going to cover in the next section. Let's get started.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.