Skip to content

Add CLI flags for selective challenge downloads and slug listing.#7

Open
Tharusha-dev wants to merge 1 commit intokasvith:masterfrom
Tharusha-dev:feat/include-exclude-challenges
Open

Add CLI flags for selective challenge downloads and slug listing.#7
Tharusha-dev wants to merge 1 commit intokasvith:masterfrom
Tharusha-dev:feat/include-exclude-challenges

Conversation

@Tharusha-dev
Copy link

Hi, amazing script! Here's what i added.

  • Added new CLI flags:

    • --print-slugs
      Prints all available challenge slugs and exits after fetching metadata.
    • --include <file>
      Path to a file containing challenge slugs to explicitly download.
    • --exclude <file>
      Path to a file containing challenge slugs to skip.

Filtering Behavior

The download logic now follows these rules:

  • If --include is provided, only challenges listed in the include file are considered.

  • If --exclude is provided, challenges listed in the exclude file are skipped.

  • If both flags are provided:

    • A challenge must be in the include list and
    • must not be in the exclude list.
  • If --print-slugs is set, all challenge slugs are printed and the program exits without downloading.

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant