From ef073c01fd60ba2316431b194033d14f6e98c146 Mon Sep 17 00:00:00 2001 From: airscripts Date: Sat, 29 Jul 2023 16:08:43 +0200 Subject: [PATCH 1/2] refactor: add missing run and compile commands into help --- cli.js | 4 ++-- lib/help.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cli.js b/cli.js index 2a3c7b0..67a9e2a 100644 --- a/cli.js +++ b/cli.js @@ -24,10 +24,10 @@ function cli() { switch (command) { case COMPILE: compile(args); break; case RUN: output = run(args); break; - case HELP: process.stdout.write(help); break; + case HELP: process.stdout.write(help); return; case ANALLIFY: output = anallify(args); break; case STRINGIFY: output = stringify(args); break; - default: process.stdout.write(help); break; + default: process.stdout.write(help); return; } process.stdout.write(`${output}\n`); diff --git a/lib/help.js b/lib/help.js index 7b8eed9..6a5a645 100644 --- a/lib/help.js +++ b/lib/help.js @@ -10,6 +10,8 @@ Usage: const commands = ` Commands: + run Run a .anal file + compile Compile any file to .anal anallify Encode string to anal stringify Decode anal to string help Show this help From 07bb79c9e7850b32b3fe538be82a63ce621eca50 Mon Sep 17 00:00:00 2001 From: airscripts Date: Sat, 29 Jul 2023 16:09:42 +0200 Subject: [PATCH 2/2] chore: update CHANGELOG for v1.1.1 --- CHANGELOG.md | 7 +++++++ README.md | 2 +- VERSION | 2 +- package.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73f24d0..5ccda9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) with some edits, and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +# 1.1.1 + +## What's Changed +* refactor: add missing run and compile commands into help + +**Full Changelog**: https://github.com/airscripts/analscript/compare/1.1.0...1.1.1 + # 1.1.0 ## What's Changed diff --git a/README.md b/README.md index 79021ef..7765133 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ analscript help This command will show you something like this: ``` -Analscript Version 1.1.0 +Analscript Version 1.1.1 Copyright (c) 2023 by Airscript Usage: diff --git a/VERSION b/VERSION index 1cc5f65..8cfbc90 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.0 \ No newline at end of file +1.1.1 \ No newline at end of file diff --git a/package.json b/package.json index 12314b9..937bb1d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "type": "module", - "version": "1.1.0", + "version": "1.1.1", "name": "analscript", "main": "analscript.js", "description": "A modern approach for writing anally fast stuff.",