Skip to content

Commit

Permalink
catastrophic typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Arruda committed Jul 24, 2024
1 parent d7c6dd4 commit 446a1b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jyafn-ext/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ macro_rules! extension {
pub extern "C" fn extension_init() -> *const c_char {
fn safe_extension_init() -> String {
let manifest = $crate::serde_json::json!({
"metatada": {
"metadata": {
"name": env!("CARGO_PKG_NAME"),
"version": env!("CARGO_PKG_VERSION"),
},
Expand Down
5 changes: 3 additions & 2 deletions jyafn-python/python/jyafn/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def do_POST(self):
)
@click.argument(
"origin",
help="the place to fetch the extension from. Can be a URL or the name of an extension "
"in the registry",
# help="the place to fetch the extension from. Can be a URL or the name of an extension "
# "in the registry",
)
def get(force, origin):
match platform.system():
Expand Down Expand Up @@ -160,6 +160,7 @@ def get(force, origin):
so.extension_init.restype = ctypes.c_char_p

manifest = json.loads(so.extension_init())
print(manifest)
name = manifest["metadata"]["name"]
version = manifest["metadata"]["version"]

Expand Down

0 comments on commit 446a1b3

Please sign in to comment.