Polyman Documentation - v2.2.2
    Preparing search index...

    Function createTemplateAction

    • Creates a new problem template directory with all necessary files. Copies template files including Config.json, Solution.cpp, Checker.cpp, Generator.cpp, Validator.cpp, and directory structure.

      Parameters

      • directory: string

        Name of directory to create

      Returns void

      If directory creation fails

      If template copying fails

      // From CLI: polyman new my-problem
      createTemplateAction('my-problem');
      // Creates: my-problem/ with full template structure