Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • RQL RQL
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cubicweb
  • RQLRQL
  • Merge requests
  • !44

Merged
Created Jul 06, 2021 by Nsukami Patrick@nsukamiMaintainer

refactor: Add module entrypoint for parsing rql strings

  • Overview 0
  • Commits 1
  • Pipelines 4
  • Changes 3

Move the old code within parser_main.py to __main__.py So that rql package can be run with the -m module flag.

When calling $ python3 -m rql "Any 1+1;", the main function defined inside main.py will be executed and the string "Any 1+1;" will be parsed.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: topic/default/add-parser-as-entrypoint