Improve 1.11 compat

This commit is contained in:
TEC 2024-02-12 16:36:16 +08:00
parent 0244858177
commit e2af89fef1
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 5 additions and 1 deletions

View File

@ -27,7 +27,11 @@ const STACK_SPEC = Pkg.REPLMode.CommandSpec(
Stack another environment.
""",
description = "Stack another environment",
completions = Pkg.REPLMode.complete_activate,
completions = if VERSION < v"1.11-DEV.0"
Pkg.REPLMode.complete_activate
else
Pkg.REPLMode.get_complete_function(:complete_activate)
end,
should_splat = false,
arg_count = 0 => Inf)