Skip to content

Commit

Permalink
Merge pull request #24 from mbarbin/cli-rename
Browse files Browse the repository at this point in the history
Internal lib rename (command -> cli)
  • Loading branch information
mbarbin authored Feb 23, 2025
2 parents 0d2bf57 + e21010a commit 5e37592
Show file tree
Hide file tree
Showing 41 changed files with 50 additions and 54 deletions.
2 changes: 1 addition & 1 deletion bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
(name main)
(package bopkit)
(public_name bopkit)
(libraries bopkit_command cmdlang-cmdliner-runner)
(libraries bopkit_cli cmdlang-cmdliner-runner)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a))
4 changes: 1 addition & 3 deletions bin/main.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
let () =
Cmdlang_cmdliner_runner.run Bopkit_command.main ~name:"bopkit" ~version:"%%VERSION%%"
;;
let () = Cmdlang_cmdliner_runner.run Bopkit_cli.main ~name:"bopkit" ~version:"%%VERSION%%"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(library
(name bopkit_bdd_command)
(public_name bopkit.bdd-command)
(name bopkit_bdd_cli)
(public_name bopkit.bdd-cli)
(flags
:standard
-w
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(library
(name subleq_command_test)
(public_name bopkit-tests.subleq_command_test)
(name bopkit_bdd_cli_test)
(public_name bopkit-tests.bopkit_bdd_cli_test)
(inline_tests)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a)
(libraries subleq_command)
(libraries bopkit_bdd_cli)
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let fmt_cmd =
let main =
Command.group
~summary:"bopkit command line"
[ "bdd", Bopkit_bdd_command.main
[ "bdd", Bopkit_bdd_cli.main
; "bop2c", Cmd_bop2c.main
; "check", Cmd_check.main
; "counter", Bopkit_counter.Counter.main
Expand All @@ -30,7 +30,7 @@ let main =
; "echo", Cmd_echo.main
; "fmt", fmt_cmd
; "print-sites", print_sites_cmd
; "process", Bopkit_process_command.main
; "process", Bopkit_process_cli.main
; "pulse", Bopkit_pulse.Pulse.main
; "simu", Cmd_simu.main
]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions lib/bopkit_command/src/dune → lib/bopkit_cli/src/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(library
(name bopkit_command)
(name bopkit_cli)
(public_name bopkit.command)
(flags
:standard
Expand All @@ -19,12 +19,12 @@
auto-format
base
bopkit
bopkit_bdd_command
bopkit_bdd_cli
bopkit_circuit
bopkit_compiler
bopkit_counter
bopkit_pp
bopkit_process_command
bopkit_process_cli
bopkit_pulse
bopkit_simulator
bopkit_sites
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(library
(name visa_command_test)
(public_name bopkit-tests.visa_command_test)
(name bopkit_cli_test)
(public_name bopkit-tests.bopkit_cli_test)
(inline_tests)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a)
(libraries visa_command)
(libraries bopkit_cli)
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(library
(name bopkit_process_command)
(public_name bopkit.process-command)
(name bopkit_process_cli)
(public_name bopkit.process-cli)
(flags
:standard
-w
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(library
(name bopkit_bdd_command_test)
(public_name bopkit-tests.bopkit_bdd_command_test)
(name bopkit_process_cli_test)
(public_name bopkit-tests.bopkit_process_cli_test)
(inline_tests)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a)
(libraries bopkit_bdd_command)
(libraries bopkit_process_cli)
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
Expand Down
19 changes: 0 additions & 19 deletions lib/bopkit_process_command/test/dune

This file was deleted.

2 changes: 1 addition & 1 deletion project/subleq/bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
(name main)
(package subleq)
(public_name subleq)
(libraries cmdlang-cmdliner-runner subleq_command)
(libraries cmdlang-cmdliner-runner subleq_cli)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a))
4 changes: 1 addition & 3 deletions project/subleq/bin/main.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
let () =
Cmdlang_cmdliner_runner.run Subleq_command.main ~name:"subleq" ~version:"%%VERSION%%"
;;
let () = Cmdlang_cmdliner_runner.run Subleq_cli.main ~name:"subleq" ~version:"%%VERSION%%"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(library
(name subleq_command)
(public_name bopkit.subleq-command)
(name subleq_cli)
(public_name bopkit.subleq-cli)
(flags
:standard
-w
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(library
(name bopkit_command_test)
(public_name bopkit-tests.bopkit_command_test)
(name subleq_cli_test)
(public_name bopkit-tests.subleq_cli_test)
(inline_tests)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a)
(libraries bopkit_command)
(libraries subleq_cli)
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
Expand Down
2 changes: 1 addition & 1 deletion project/visa/bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
(name main)
(package visa)
(public_name visa)
(libraries cmdlang-cmdliner-runner visa_command)
(libraries cmdlang-cmdliner-runner visa_cli)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a))
2 changes: 1 addition & 1 deletion project/visa/bin/main.ml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
let () = Cmdlang_cmdliner_runner.run Visa_command.main ~name:"visa" ~version:"%%VERSION%%"
let () = Cmdlang_cmdliner_runner.run Visa_cli.main ~name:"visa" ~version:"%%VERSION%%"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(library
(name visa_command)
(public_name bopkit.visa-command)
(name visa_cli)
(public_name bopkit.visa-cli)
(flags
:standard
-w
Expand Down
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions project/visa/lib/visa_cli/test/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
(library
(name visa_cli_test)
(public_name bopkit-tests.visa_cli_test)
(inline_tests)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a)
(libraries visa_cli)
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
(pps
-unused-type-warnings=force
ppx_compare
ppx_enumerate
ppx_expect
ppx_hash
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value)))

0 comments on commit 5e37592

Please sign in to comment.