Home Explore Blog CI



nushell

commands/categories/default.md
e028fb4dd6f4abef4dbef0f4f0ce6e7085c78e4864df025800000003000002e8
---
editLink: false
contributors: false
---

# Default

<script>
  import pages from '@temp/pages'
  export default {
    computed: {
      commands() {
        return pages
          .filter(p => p.path.includes('/commands/docs/'))
          .filter(p => p.frontmatter.categories.includes('default'))
          .sort((a,b) => (a.title > b.title) ? 1 : ((b.title > a.title) ? -1 : 0));
      }
    }
  }
</script>

<table>
  <thead>
    <tr>
      <th>Command</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr v-for="command in commands">
       <td><a :href="$withBase(command.path)">{{ command.title }}</a></td>
       <td style="white-space: pre-wrap;">{{ command.frontmatter.usage }}</td>
    </tr>
  </tbody>
</table>

Chunks
aa5e0f3c (1st chunk of `commands/categories/default.md`)
Title: Default Commands Table
Summary
This section displays a table of default commands, listing each command's name (linked to its documentation) and a brief description of its usage. The table is dynamically generated from pages with paths including '/commands/docs/' and categorized as 'default', sorted alphabetically by title.