mrmonday / find-cmdlet

A search engine for PowerShell. Source code for https://find-cmdlet.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Find-Cmdlet

A search engine for PowerShell cmdlets.

Source code for: https://find-cmdlet.com/

Source Overview

There are three main components:

  1. Scraper
  2. Indexer
  3. The site

Scraper

The scraper pulls cmdlet data from three locations:

  • Built in Windows Powershell snapins
  • RSAT Windows features
  • PowerShell Gallery

Each of these is handled by a Docker container so they can be handled in relative isolation.

With each module loaded, the scraper is then updates the help text, and runs Get-Module, Get-Command, and Get-Help, dumping the results with ConvertTo-Json. The resulting json can then be processed by the indexer.

Indexer

The indexer takes the json output from the scraper, and feeds it into Tantivy. Currently anything clever is left to Tantivy.

The site

This is what you see at https://find-cmdlet.com/. It's a basic front end on top of the index produced by Tantivy.

About

A search engine for PowerShell. Source code for https://find-cmdlet.com/

License:Apache License 2.0


Languages

Language:Rust 73.2%Language:PowerShell 14.0%Language:TypeScript 3.5%Language:Dockerfile 3.2%Language:HTML 2.7%Language:CSS 2.3%Language:Shell 1.0%