[Tarantool-patches] [PATCH v2 2/2] luarocks: Add a kludge for option force of luarocks remove

Leonid Vasiliev lvasiliev at tarantool.org
Mon Mar 16 14:50:33 MSK 2020


From: Leonid <lvasiliev at tarantool.org>

Fixed the tarantoolctl rocks remove flag --force

Forwarding of the --force flag to tarantoolctl rocks module was added.
(Command: tarantoolctl rocks remove --force)

Fixes: #3632
---
 extra/dist/tarantoolctl.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in
index 372838edd..c6c3ecb8f 100755
--- a/extra/dist/tarantoolctl.in
+++ b/extra/dist/tarantoolctl.in
@@ -950,6 +950,10 @@ local function rocks()
         table.insert(positional_arguments, "--all")
     end
 
+    if positional_arguments[1] == "remove" and find_arg("force") then
+        table.insert(positional_arguments, "--force")
+    end
+
     -- Tweak help messages
     util.see_help = function(command, program)
         -- TODO: print extended help message here
@@ -1406,6 +1410,7 @@ local function populate_arguments()
         { 'server',      'string'  },
         { 'language',    'string'  },
         { 'all',         'boolean' },
+        { 'force',       'boolean' },
     })
 
     local cmd_name
-- 
2.17.1



More information about the Tarantool-patches mailing list