# 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](/examples/overview/hello-world..md) | A bare bones hello world example.                                                                                                                                                                                             |
| [dcompress](/examples/overview/dcompress.md)      | <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](/examples/overview/dpath.md)              | Prints a list of the PATH directories and checks that each one is valid.                                                                                                                                                      |
| [dmysql](/examples/overview/dmysql.md)            | 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](/examples/overview/dshell.md)            | An example REPL shell.                                                                                                                                                                                                        |
| [dwhich](/examples/overview/dwhich.md)            | 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](/examples/overview/dipaddr.md)          | Prints out each of the local IP address bound to your machine in a human readable format.                                                                                                                                     |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dcli.onepub.dev/examples/overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
