Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
5155445
embed_internal_str with logs without making any changes
qxprakash Oct 27, 2024
e733fd7
added more debug statements in embed internal string
qxprakash Oct 27, 2024
d7156d3
added named embedargs
qxprakash Oct 27, 2024
7472229
forbid use of "../" in file_path
qxprakash Oct 27, 2024
cc1d56f
added check where git url is passed but path starts with ".." or "/" …
qxprakash Oct 27, 2024
a3b5e96
clone working
qxprakash Oct 27, 2024
48e4f81
hash part working , branch , tag part remaining , network check part …
qxprakash Oct 27, 2024
663b376
added more logs
qxprakash Oct 27, 2024
6430206
clone all the remote branch and switch to a particular branch working…
qxprakash Oct 27, 2024
36aea01
added branch_name optional param to clone_repo , if passed None it on…
qxprakash Oct 27, 2024
8a7e8dd
added commit hash when passed it check's out that specific commit has…
qxprakash Oct 27, 2024
f95ff9d
tag working , now need to add that to the embedArgs
qxprakash Oct 27, 2024
6856250
added commit , branch , tag in embed args , along with validation tha…
qxprakash Oct 27, 2024
f4f545e
internet check added
qxprakash Oct 27, 2024
f378780
added utility function for checking internet
qxprakash Oct 28, 2024
11aebc3
network check working tested
qxprakash Oct 28, 2024
b1a88b5
positional arguments working
qxprakash Oct 28, 2024
66c171e
added validation on first positional argument that it can't be a url …
qxprakash Oct 28, 2024
45f219d
tmp dir clean up but need to persist it till the lifecycle of the ent…
qxprakash Oct 30, 2024
62f01fd
git dir cache key
qxprakash Oct 30, 2024
1b033e5
changed "=" to ":" testing of all cases remaining
qxprakash Oct 31, 2024
d67cef7
separate out functions , refactor
qxprakash Oct 31, 2024
1106f8e
new flow working tested , prettify code and error messages remaining
qxprakash Oct 31, 2024
ed70fa0
git dir cache
qxprakash Oct 31, 2024
e1148bc
default branch working tested
qxprakash Oct 31, 2024
1ffa78a
removed oid from imports
qxprakash Oct 31, 2024
d8b425c
minimal flow working , caching case remaining where if the snippet is…
qxprakash Nov 1, 2024
480aa92
caching working edge cases testing remaining
qxprakash Nov 1, 2024
df82e6c
moved creating of snppets dir to mod.rs
qxprakash Nov 1, 2024
73ab28a
added edge case where commit was provided and internet not available …
qxprakash Nov 1, 2024
fbbc823
hash of varied length working in case branch is not provided
qxprakash Nov 1, 2024
e78619c
added ident and tested
qxprakash Nov 2, 2024
1b3f34b
changed parse for embed args , cleanup and addeed tests , getting sta…
qxprakash Nov 2, 2024
8af2054
removed embed args test added logs in lib.rs
qxprakash Nov 2, 2024
7d17b26
cleanup and added comments
qxprakash Nov 2, 2024
4cc75ea
encapsulated git options into a separate function
qxprakash Nov 2, 2024
3f6c91c
added missing imports
qxprakash Nov 2, 2024
ae4daf0
get_snippet_file_name and existing_snippet_path functions
qxprakash Nov 2, 2024
eaf1320
pub fn get_remote_commit_sha_without_clone(
qxprakash Nov 3, 2024
cf4849d
commented out git refspec cloning progress
qxprakash Nov 3, 2024
7363483
stripout .git from git_url it it's present
qxprakash Nov 3, 2024
5a41628
add check for empty string in file path in positional args
qxprakash Nov 3, 2024
92b994f
changed has_internet to allow_updates , which will be false if DOCS_R…
qxprakash Nov 3, 2024
cce3497
added test 1 embed invalid args test failing
qxprakash Nov 4, 2024
845da66
updated tests
qxprakash Nov 4, 2024
70cc180
validate git url when passed as named args
qxprakash Nov 4, 2024
9f2b7ac
moved old file path validation checks into struct impl
qxprakash Nov 4, 2024
3847fd5
used pattern matching in set_arg
qxprakash Nov 4, 2024
f7bf899
removed the extra check
qxprakash Nov 4, 2024
97cd401
removed print statements from embed_internal_str
qxprakash Nov 4, 2024
2de26c0
removed all print statements from mod.rs
qxprakash Nov 4, 2024
7f29ff9
made changes to accomodate merge
qxprakash Nov 19, 2024
0dfda07
Merge branch 'staging'
qxprakash Nov 19, 2024
f2178a6
fixes
qxprakash Nov 19, 2024
1bf980c
all tests passing
qxprakash Dec 14, 2024
1b696c0
fix warnings
qxprakash Dec 14, 2024
2d0612d
Merge branch 'main' into staging
qxprakash Dec 14, 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
3 changes: 3 additions & 0 deletions macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ common-path = "1"
termcolor = "1"
once_cell = "1"
toml = "0.8"
tempfile = "3.3.0"
git2 = "0.18"
sha2 = "0.10.6"
Loading
Loading