From 0f4107c6315ca7278d6f97205fd1a7ae171d50c1 Mon Sep 17 00:00:00 2001 From: sagie gur ari Date: Tue, 5 May 2020 07:00:46 +0000 Subject: [PATCH] Add array_add and array_put aliases to array_push --- CHANGELOG.md | 1 + duckscript_sdk/src/sdk/std/collections/array_push/mod.rs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e4bf07..91aa039 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ * New get_all_var_names command #100 * New get_by_name command. * New set_by_name command. +* Add array_add and array_put aliases to array_push * Runtime - Support for hashset state value. * \[Breaking Change\] Runtime - REPL mode doesn't stop due to crashes from user commands #103 diff --git a/duckscript_sdk/src/sdk/std/collections/array_push/mod.rs b/duckscript_sdk/src/sdk/std/collections/array_push/mod.rs index 259bd77..1ef1aed 100755 --- a/duckscript_sdk/src/sdk/std/collections/array_push/mod.rs +++ b/duckscript_sdk/src/sdk/std/collections/array_push/mod.rs @@ -20,7 +20,11 @@ impl Command for CommandImpl { } fn aliases(&self) -> Vec { - vec!["array_push".to_string()] + vec![ + "array_push".to_string(), + "array_add".to_string(), + "array_put".to_string(), + ] } fn help(&self) -> String {