List of available demo commands

Is there a programmatic way to get a list of all possible deno commands? Something like:
const commands = ['run', 'test', ...]!
const commands = ['run', 'test', ...]!
DAH
Deno AI Helper51d ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on your message, it seems like you're looking for a way to programmatically retrieve a list of all Deno CLI commands. Deno does not provide a built-in function to retrieve a list of its commands programmatically. The CLI commands are part of the Deno executable's interface and are typically documented in the manual or accessible via the command line using deno help. If you're looking to create a list of commands for your own purposes, you would need to manually define them as you've started in your example:
const commands = ['run', 'test', ...];
const commands = ['run', 'test', ...];
Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of this advice. If you need further assistance, you might want to explore the Deno community forums or GitHub discussions where you can ask questions to the broader Deno community.