Skip to content

Commit dd87f8a

Browse files
authored
Merge pull request #482 from metacall/feature/cli-full-refactor
Feature/cli full refactor
2 parents 251ee55 + d1eabd5 commit dd87f8a

File tree

56 files changed

+1154
-2177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1154
-2177
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ COMPOSE_PROJECT_NAME='metacall'
2323
# Configure default variables
2424
METACALL_PATH=/usr/local/metacall
2525
METACALL_BUILD_TYPE=relwithdebinfo
26-
METACALL_BASE_IMAGE=debian:bookworm-slim # debian:bullseye-slim # ubuntu:jammy # alpine:3.17
26+
METACALL_BASE_IMAGE=debian:trixie-slim # debian:bookworm-slim # ubuntu:jammy # alpine:3.17

.github/workflows/linux-sanitizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
image: ["debian:bookworm-slim", "debian:bullseye-slim", "ubuntu:jammy"]
25+
image: ["debian:trixie-slim", "debian:bookworm-slim", "ubuntu:jammy"]
2626
sanitizer: [address-sanitizer, thread-sanitizer] # TODO: memory-sanitizer not supported by GCC
2727

2828
env:

.github/workflows/linux-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
build: [debug, release]
25-
image: ["debian:bookworm-slim", "debian:bullseye-slim", "ubuntu:jammy"] # TODO: "alpine:3.17"
25+
image: ["debian:trixie-slim", "debian:bookworm-slim", "ubuntu:jammy"] # TODO: "alpine:3.17"
2626

2727
steps:
2828
- name: Check out the repository

.github/workflows/windows-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# {build: debug, sanitizer: memory-sanitizer},
3232

3333
# TODO: https://github.com/metacall/core/issues/461
34-
{build: release, sanitizer: without-sanitizer}
34+
# {build: release, sanitizer: without-sanitizer}
3535
]
3636

3737
steps:

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ install_manifest.txt
3333
compile_commands.json
3434
CTestTestfile.cmake
3535

36-
# Avoid ignoring build hooks
37-
!hooks/build
38-
!tools/deps/hooks/build
39-
!tools/dev/hooks/build
40-
!tools/runtime/hooks/build
41-
!tools/cli/hooks/build
42-
4336
# Qt cache
4437
CMakeLists.txt.user
4538
CMakeLists.txt.user.*

source/cli/metacallcli/CMakeLists.txt

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,13 @@ include(SecurityFlags)
2525
#
2626

2727
set(include_path "${CMAKE_CURRENT_SOURCE_DIR}/include/${target}")
28-
set(inline_path "${CMAKE_CURRENT_SOURCE_DIR}/inline/${target}")
2928
set(source_path "${CMAKE_CURRENT_SOURCE_DIR}/source")
3029

3130
set(headers
32-
${include_path}/tokenizer.hpp
33-
${include_path}/parser.hpp
3431
${include_path}/application.hpp
3532
)
3633

37-
set(inline
38-
${inline_path}/parser.inl
39-
)
40-
4134
set(sources
42-
${source_path}/tokenizer.cpp
43-
${source_path}/parser.cpp
4435
${source_path}/application.cpp
4536
${source_path}/main.cpp
4637
)
@@ -97,9 +88,6 @@ target_include_directories(${target}
9788
${PROJECT_BINARY_DIR}/source/include
9889
${CMAKE_CURRENT_SOURCE_DIR}/include
9990
${CMAKE_CURRENT_BINARY_DIR}/include
100-
${PROJECT_BINARY_DIR}/source/inline
101-
${CMAKE_CURRENT_SOURCE_DIR}/inline
102-
${CMAKE_CURRENT_BINARY_DIR}/inline
10391
${DEFAULT_INCLUDE_DIRECTORIES}
10492

10593
PUBLIC
@@ -173,6 +161,11 @@ add_loader_dependencies(${target}
173161
ts_loader
174162
)
175163

164+
add_dependencies(${target}
165+
cli_repl_plugin
166+
cli_core_plugin
167+
)
168+
176169
#
177170
# Deployment
178171
#
@@ -234,7 +227,7 @@ if(OPTION_BUILD_LOADERS AND OPTION_BUILD_LOADERS_NODE AND OPTION_BUILD_SCRIPTS A
234227
PROPERTY LABELS ${target}-node
235228
)
236229
set_tests_properties(${target}-node PROPERTIES
237-
PASS_REGULAR_EXPRESSION "700.0"
230+
PASS_REGULAR_EXPRESSION "4001534"
238231
)
239232
test_environment_variables(${target}-node
240233
""
@@ -374,7 +367,7 @@ if(OPTION_BUILD_LOADERS AND OPTION_BUILD_LOADERS_FILE AND OPTION_BUILD_SCRIPTS A
374367
PROPERTY LABELS ${target}-file-fail
375368
)
376369
set_tests_properties(${target}-file-fail PROPERTIES
377-
PASS_REGULAR_EXPRESSION "Script \\(this-does-not-exist\\) load error in loader \\(file\\)"
370+
PASS_REGULAR_EXPRESSION "Error: Failed to load script 'this-does-not-exist' with loader 'file'"
378371
)
379372
test_environment_variables(${target}-file-fail
380373
""
@@ -450,7 +443,7 @@ if(OPTION_BUILD_LOADERS AND OPTION_BUILD_LOADERS_TS AND OPTION_BUILD_SCRIPTS AND
450443
PROPERTY LABELS ${target}-ts
451444
)
452445
set_tests_properties(${target}-ts PROPERTIES
453-
PASS_REGULAR_EXPRESSION "9.0"
446+
PASS_REGULAR_EXPRESSION "51354"
454447
)
455448
test_environment_variables(${target}-ts
456449
""

0 commit comments

Comments
 (0)