question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refactor CLI to use "commands"

See original GitHub issue

First, this project is great. Keep up the good work.

This is a proposal for a redesign of the CLI interface. I’d be happy to put in a PR for if it seems like a good thing to do.

A Proposal

Redesign the CLI interface to use “commands” instead of options.

$ lume --help

  🔥lume v0.14.0
  A static site generator for Deno

  Docs:

    https://lumeland.github.io

  Usage:

    lume [OPTIONS] COMMAND

  Options:

    -h, --help     - Show this help.
    -V, --version  - Show the version number for this program.

  Commands:

    build [config]  - build the site
    init            - create a _config.js file for a new site
    serve           - Build the site and start a web server that refreshes automatically for every change
    upgrade         - Upgrade local lume install to the latest version
    update          - Update the lume version imported in _config.js to the latest

Each command would have its own --help output as well, specifying the relevant options for that command


If this looks like a good direction for lume I can get a PR ready sometime this week

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
JordanShurmercommented, Jan 28, 2021

Awesome. Thanks for the quick feedback. Good to see work already being done on this front @oscarotero.

I will check out that branch and contribute where I can.

0reactions
JordanShurmercommented, Jan 31, 2021

Closed by #34

Read more comments on GitHub >

github_iconTop Results From Across the Web

ApexSQL Refactor Command Line Interface (CLI) switches
The CLI in ApexSQL Refactor allows to format SQL scripts using one of four build-in formatting profiles or use your own customized formatting...
Read more >
Large Refactor At The Command Line - Waylon Walker
Large Refactor At The Command Line ; match the remote and wipe out any changes. git reset --hard origin/main ; match our last...
Read more >
Command Line Tool - Refactor - SQL Enlight
Command Line Tool – Refactor. Refactor T-SQL script files using registered code refactorings. ... Apply single refactoring to the T-SQL files.
Read more >
3 basic refactoring tools for your command line
3 basic refactoring tools for your command line. byMagmaLabs Team; August 23, ... And now, a quick summary of the commands I use...
Read more >
Command - Refactoring.Guru
Command is a behavioral design pattern that turns a request into a stand-alone object that contains all information about the request.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found