8000 Command line enhancements by lmcmicu · Pull Request #112 · ontodev/valve.rs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Command line enhancements #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 100 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
0734540
add add subcommand
lmcmicu Sep 18, 2024
9eef094
read input from stdin in Add
lmcmicu Sep 18, 2024
c32574f
use nested subcommands
lmcmicu Sep 19, 2024
e2038fb
add get subcommand, alphabetize match arms in main(), add get_row() stub
lmcmicu Sep 19, 2024
d160339
move all positional arguments to leaf subcommands
lmcmicu Sep 19, 2024
a73e21a
reorganize toolkit
lmcmicu Sep 19, 2024
4b89c58
implement API version of get_row()
lmcmicu Sep 19, 2024
9126d61
rename get_row() to get_row_from_db() and get_row_from_db() to get_ro…
lmcmicu Sep 19, 2024
d0002e8
use AnyKind instead of AnyPool where possible
lmcmicu Sep 19, 2024
fadfa65
add DbKind
lmcmicu Sep 20, 2024
ce528e2
small reorg and name change for functions that use transactions
lmcmicu Sep 20, 2024
5fab3e4
add 'get cell' and 'get value' subcommands
lmcmicu Sep 20, 2024
65de31c
correct SerdeValues in get_row_from_db()
lmcmicu Sep 20, 2024
89ad162
implement get table
lmcmicu Oct 3, 2024
ce48032
get source and database from environment if not specified
lmcmicu Oct 3, 2024
7ac4568
implement get messages
lmcmicu Oct 3, 2024
93884df
implement CLI validate
lmcmicu Oct 4, 2024
9b2e520
export environment vars
lmcmicu Oct 4, 2024
266301e
fix tests
lmcmicu Oct 4, 2024
536585b
use simple json for input rows
lmcmicu Oct 4, 2024
c2ababb
implement CLI update and delete
lmcmicu Oct 4, 2024
2bf060c
add subcommands for update and delete
lmcmicu Oct 6, 2024
885d2cb
make row and column optional when getting messages
lmcmicu Oct 6, 2024
10fbf70
add add message
lmcmicu Oct 6, 2024
b293aa4
add update message
lmcmicu Oct 6, 2024
228acc3
add delete message
lmcmicu Oct 6, 2024
49b70cc
allow to delete multiple messages
lmcmicu Oct 7, 2024
28b21db
add undo redo to cli
lmcmicu Oct 7, 2024
bf670d3
exit with correct status for cli-validate
lmcmicu Oct 7, 2024
78ade3e
add cli history
lmcmicu Oct 12, 2024
4ec4240
history output tweaks
lmcmicu Oct 13, 2024
92bc665
include redo stack in history
lmcmicu Oct 13, 2024
d2a8fd7
do not redo orphaned history entries; add --rule option for get and d…
lmcmicu Oct 15, 2024
69f721c
reorganization and refactoring
lmcmicu Oct 18, 2024
7ad2a15
indicate move operations properly in history
lmcmicu Oct 19, 2024
6091766
add move CLI operation
lmcmicu Oct 19, 2024
208b983
add get-config subcommands
lmcmicu Oct 20, 2024
30489d9
use new get-config CLI syntax in test script
lmcmicu Oct 20, 2024
bf93e46
add CLI config add table
lmcmicu Oct 21, 2024
4346bab
implement CLI save-as
lmcmicu Oct 21, 2024
2d32493
eliminate config and get-config categories and redistribute their sub…
lmcmicu Oct 22, 2024
3df069b
first pass implemention of add_column()
lmcmicu Oct 25, 2024
09ca56f
return error when input columns don't exist
lmcmicu Oct 25, 2024
a263cf4
(WIP) add column
lmcmicu Oct 25, 2024
bc8dd3b
add datatype
lmcmicu Oct 29, 2024
751b3fd
make inner functions outer
lmcmicu Oct 30, 2024
6282101
implement delete column and datatype
lmcmicu Oct 30, 2024
672cab4
implement delete table
lmcmicu Oct 30, 2024
67ab925
implement move column
lmcmicu Oct 30, 2024
92ed973
implement (WIP) rename column, datatype
lmcmicu Oct 31, 2024
45c3731
reimplement drop, implement truncate
lmcmicu Nov 1, 2024
ece12c7
load after modifying columns and tables
lmcmicu Nov 1, 2024
54b4adc
add -all variants
lmcmicu Nov 4, 2024
ddf343d
add datatype name to list type, fix condition case statement in renam…
lmcmicu Nov 5, 2024
c8f70d8
refactor CLI operations into separate module
lmcmicu Nov 5, 2024
9db2e4d
remove old comment
lmcmicu Nov 5, 2024
d8853fb
reorder functions in cli.rs
lmcmicu Nov 5, 2024
30b8bd9
factor out cli.rs into public functions
lmcmicu Nov 5, 2024
9e98d44
change to build_valve() signature, plus miscellaneous improvements an…
lmcmicu Nov 6, 2024
40aab6e
tweak
lmcmicu Nov 6, 2024
9c42afe
accept both "row" and "row_number" in input JSON
lmcmicu Nov 7, 2024
815be75
update rule conditions when renaming datatypes
lmcmicu Nov 10, 2024
ee9f95d
implement rename_table()
lmcmicu Nov 12, 2024
8f789f3
implement rename_column(); confirm loads in cli.rs
lmcmicu Nov 17, 2024
ed987f4
also rename views in rename_table()
lmcmicu Nov 17, 2024
883deca
don't ask dumb questions
lmcmicu Nov 17, 2024
e11fc7f
properly support SQLite in rename_column()
lmcmicu Nov 20, 2024
94504e2
fix bug in add_table()
lmcmicu Nov 20, 2024
c8d52cb
ask user questions when validating if input type is not JSON
lmcmicu Dec 2, 2024
7a5d4dd
maybe ask questions when adding columns
lmcmicu Dec 2, 2024
b58b7f1
maybe ask questions when adding datatypes
lmcmicu Dec 2, 2024
0e2a379
maybe ask questions when adding messages
lmcmicu Dec 2, 2024
c363d30
maybe ask questions when adding rows
lmcmicu Dec 2, 2024
aba5676
maybe ask questions when updating messages and rows
lmcmicu Dec 2, 2024
d0dd483
refactor validate
lmcmicu Dec 2, 2024
2fa7918
record column adds to history table
lmcmicu Dec 8, 2024
fb92979
refactor
lmcmicu Dec 8, 2024
9ca55e9
record column deletes, datatype adds and deletes to history
lmcmicu Dec 8, 2024
3bb05a0
record renames of tables, datatypes and columns
lmcmicu Dec 8, 2024
cc7629d
record table adds and deletes
lmcmicu Dec 8, 2024
d7021fd
implement undo add, delete column
lmcmicu Dec 9, 2024
e43ebd0
implement undo add, delete datatype
lmcmicu Dec 9, 2024
e701127
implement undo add, delete table
lmcmicu Dec 9, 2024
f8f25b0
implement redo metadata ops
lmcmicu Dec 9, 2024
7321261
WIP tweak
lmcmicu Dec 9, 2024
fde93f8
save datatype row number for undo/redo when adding and deleting
lmcmicu Dec 9, 2024
8872997
save table row number when deleting
lmcmicu Dec 10, 2024
ef5baa9
implement undo, redo for rename_column()
lmcmicu Dec 10, 2024
32bb4af
implement undo, redo for rename datatype
lmcmicu Dec 10, 2024
b2cd68e
implement undo and redo for table renames
lmcmicu Dec 10, 2024
270e336
WIP clean up and refactor
lmcmicu Dec 10, 2024
cf3d05e
clean up and refactor; rename SerdeMap to JsonRow
lmcmicu Dec 15, 2024
ac93a71
preserve row order when undoing datatype, column and table manipulations
lmcmicu Dec 16, 2024
fc0bb4e
fix bug in assigning NULL values when inserting a new row
lmcmicu Dec 20, 2024
626033d
be more verbose, fix bug in extracting row number from messages
lmcmicu Dec 20, 2024
215e7f4
cleanup and refactoring
lmcmicu Dec 23, 2024
24980c9
add basic CLI tests
lmcmicu Dec 23, 2024
5d11586
make references to configuration tables generic where possible
lmcmicu Dec 23, 2024
9cd8155
add missing files
lmcmicu Dec 23, 2024
4ae3118
small cleanup
lmcmicu Dec 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 131 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ build = "build.rs"
lalrpop = { version = "0.19.9", features = ["lexer"] }

[dependencies]
ansi_term = "0.12"
anyhow = "1.0"
async-std = { version = "1", features = [ "attributes" ] }
async-recursion = "1.0"
clap = { version = "4.5", features = ["derive", "wrap_help"] }
clap = { version = "4.5", features = ["derive", "env", "wrap_help"] }
crossbeam = "0.8"
csv = "1.1"
enquote = "1.1"
Expand All @@ -34,6 +35,7 @@ num_cpus = "1.16"
pad = "0.1"
petgraph = "0.6"
proceed = "0.1"
promptly = "0.3"
rand = "0.8"
rand_regex = "0.17"
regex = "1"
Expand Down
Loading
0