Skip to content

Auto-detect ArticleID from markdown file in yt articles fetch #641

@ryancheley

Description

@ryancheley

Description

The yt articles fetch command currently requires users to pass the article ID via a flag. This enhancement would allow the command to automatically detect the article ID if the markdown file contains a comment with the format <!-- ArticleID: XXX --> at the top.

Current Behavior

  • Users must explicitly pass --article-id (or similar) to update a specific article

Desired Behavior

  • If a markdown file has <!-- ArticleID: XXX --> at the top, the command should automatically use that article ID without requiring a flag
  • This improves UX by reducing the number of required flags and makes the workflow more ergonomic

Example

<!-- ArticleID: DOCS-A-789 -->
# Article Title
...

Running yt articles fetch --file path/to/file.md should automatically use DOCS-A-789 as the article ID.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions