# Code

The Examples section is intended to be a grab bag of samples that demonstrate various techniques that you can use to solve problems with DCli.

Feel free to use any of the code as your own.

| Example                                                               | Description                                                                                                                                                                                                                   |
| --------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Hello World](https://dcli.onepub.dev/examples/overview/hello-world.) | A bare bones hello world example.                                                                                                                                                                                             |
| [dcompress](https://dcli.onepub.dev/examples/overview/dcompress)      | <p>Utility that is able to dcompress multiple file types. It uses the file extension to select the appropriate tool to decompress the file with.</p><p>It does require that the appropriate OS tool is already installed.</p> |
| [dpath](https://dcli.onepub.dev/examples/overview/dpath)              | Prints a list of the PATH directories and checks that each one is valid.                                                                                                                                                      |
| [dmysql](https://dcli.onepub.dev/examples/overview/dmysql)            | Allows you to save the connection arguments to the mysql cli command to connect to multiple databases. Once configured you can connect by typing `dmysql <dbname>`                                                            |
| [dshell](https://dcli.onepub.dev/examples/overview/dshell)            | An example REPL shell.                                                                                                                                                                                                        |
| [dwhich](https://dcli.onepub.dev/examples/overview/dwhich)            | Dart implementation of the class `which` command bit it also validates the PATH and prints all occurances of the app that it finds in the order they appear on the PATH.                                                      |
| [dipaddr](https://dcli.onepub.dev/examples/overview/dipaddr)          | Prints out each of the local IP address bound to your machine in a human readable format.                                                                                                                                     |
