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

    Function remotePushProblemAction

    • Pushes local problem to Polygon. Creates new problem if Config.json doesn't contain problem ID. Updates existing problem if ID is present. Uploads all files including solutions, tests, checker, validator, statements.

      Parameters

      • problemPath: string

        Path to problem directory with Config.json

      • Optionaloptions: {
            all?: boolean;
            solutions?: boolean;
            checker?: boolean;
            validator?: boolean;
            generators?: boolean;
            statements?: boolean;
            tests?: boolean;
            metadata?: boolean;
            info?: boolean;
        }

      Returns Promise<void>

      Resolves when push completes

      If credentials are not registered

      If Config.json is invalid or missing

      If Polygon API request fails

      // From CLI: polyman remote-push ./my-problem
      await remotePushProblemAction('./my-problem');
      // Creates new problem or updates existing one