From b7fc0aad9f394c99b9cfd258db6abb4ecee028a9 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 20 Mar 2023 00:28:14 +0700 Subject: all: changes the line number arguments for "local" and "play" command Previously, the "local" and "play" command only accept two kind of arguments: one argument for executing single line or two arguments for executing line range. There are no options to executing multiple single line, multiple line range, or combination of them. This changes make the both commands accept list of lines or line range where each separated by comma. For example, to execute multiple, different single lines awwan local 4,8,12 To execute multiple line range, awwan local 4-8,12-16 Or to execute multiple lines and line range, awwan local 4,8,10-12 --- README | 89 +++++++++++++++++++++------------- _doc/CHANGELOG.adoc | 30 ++++++++++++ awwan.go | 55 ++++++++++----------- cmd/awwan/main.go | 136 ++++++++++++++++------------------------------------ http_api.go | 11 +---- line_position.go | 9 ++++ memfs_www.go | 14 +++--- range.go | 96 +++++++++++++++++++++++++++++++++++++ range_test.go | 51 ++++++++++++++++++++ request.go | 23 ++++++--- session.go | 32 +++++++++---- 11 files changed, 356 insertions(+), 190 deletions(-) create mode 100644 line_position.go create mode 100644 range.go create mode 100644 range_test.go diff --git a/README b/README index e3cd058..f1b0ed1 100644 --- a/README +++ b/README @@ -2,7 +2,6 @@ // SPDX-License-Identifier: GPL-3.0-or-later = awwan Shulhan -11 Aug 2021 :toc: :sectanchors: :sectlinks: @@ -21,11 +20,46 @@ directory layout. ---- awwan -command = "local" | "play" | "serve" +command = "help" / "local" / "play" / "serve" / "version" -arguments =