Open
Conversation
Addresses the core functionality of the subcommand for Usage: prompthound [OPTIONS] COMMAND [ARGS]...
A command-line tool for interacting with the prompthound package.
Options:
--log-level [TRACE|DEBUG|INFO|SUCCESS|WARNING|ERROR|CRITICAL]
Set the log level for the command.
[default: WARNING]
--log-file FILE Path to a file for logging.
--help Show this message and exit.
Commands:
ingest Ingest feed data from files or stdin.
init Initialize the prompthound database.
main The main entry point for the prompthound CLI..
- Reads feed file content from command-line filenames or standard input.
- Defaults to in the OS-specific user data directory, with a option for custom paths.
- Overwrites an existing database with user confirmation.
- Initializes the schema for new or overwritten databases.
- Prevents duplicate feed items (identified by URL) during ingestion.
- Includes comprehensive tests for various input scenarios and data files.
- Adds and Poe the Poet (version 0.37.0)
Result: No task specified.
Usage:
poe [global options] task [task arguments]
Global options:
-h, --help [TASK] Show this help page and exit, optionally supply a
task.
--version Print the version and exit
-v, --verbose Increase output (repeatable)
-q, --quiet Decrease output (repeatable)
-d, --dry-run Print the task contents but don't actually run it
-C, --directory PATH Specify where to find the pyproject.toml
-e, --executor EXECUTOR
Override the default task executor
--ansi Force enable ANSI output
--no-ansi Force disable ANSI output
Configured tasks:
lint Run ruff linter on source and test files
lint:fix Run ruff linter and auto-fix issues
type Run ty type checker on source files
test Run pytest with verbose output
test:cov Run pytest with coverage report (terminal + HTML)
test:quick Run pytest and stop on first failure
qa Run all QA checks (lint, type, test) configurations to .
…bledb immplementation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements the subcommand for Usage: prompthound [OPTIONS] COMMAND [ARGS]...
A command-line tool for interacting with the prompthound package.
Options:
--log-level [TRACE|DEBUG|INFO|SUCCESS|WARNING|ERROR|CRITICAL]
Set the log level for the command.
[default: WARNING]
--log-file FILE Path to a file for logging.
--help Show this message and exit.
Commands:
init Initialize the prompthound database.
main The main entry point for the prompthound CLI. as described in GitHub issue #4.
Task Checklist
1. Create subcommand:
2. Implement Database Handling:
3. Implement Ingestion Logic:
4. Add Error Handling:
5. Create Tests: