cms-dev / cms-dev/cms

Feature request: rethink cms command line interface

Open
#281 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature_request
Dominant language
Python
Stars
1k
Forks
412
Avg merge
6d 10h
Merged PRs (30d)
3

Description

Right now there are many different scripts, like:

cmsAdminWebServer
cmsContestWebServer
cmsImporter
cmsMake
...

An idea to make the command line interface easier and more accessible is to use a "git-like" syntax:

cms admin-web-server
cms contest-web-server
cms importer
cms make
...

(commands like cms admin-web-server could be aliased to cms aws, for example)

There are several advantages with this approach:

  • by calling just cms you get a nice and welcoming usage screen (like git)
  • tab-autocompletion is preserved if it is delegated to bash completion (which is even better)
  • when packaging cms for some distro which requires to specify a "provides" field, only the cms binary will be specified (thus packaging scripts will need less maintenance).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing cmsAdminWebServer, cmsContestWebServer, cmsImporter, and cmsMake entry points and the packaging and bash-completion setup. Compare their current invocation paths with the proposed cms subcommands and aliases. Done means the commands are dispatched through a single cms interface, provide a welcoming default usage screen, preserve completion, and reduce packaging entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.