summaryrefslogtreecommitdiff
path: root/header/header.ha
diff options
context:
space:
mode:
authorAlejandro Sior <aho@sior.be>2022-06-18 14:43:46 +0200
committerAlejandro Sior <aho@sior.be>2022-06-18 14:43:46 +0200
commitfd2f5a94d6ad595e8bed354eca168a82b882e8b4 (patch)
treef30495b2ca343e1baf189e8a9f20f6234848fdea /header/header.ha
parent6117a803ad717fd50003c0bd8fbe393db2dcac6b (diff)
gptman: change the way of how args are passed to subcommands
Diffstat (limited to 'header/header.ha')
-rw-r--r--header/header.ha4
1 files changed, 3 insertions, 1 deletions
diff --git a/header/header.ha b/header/header.ha
index 9602071..0e93842 100644
--- a/header/header.ha
+++ b/header/header.ha
@@ -2,8 +2,10 @@ use fmt;
use io;
use gpt;
+use volume;
-export fn header(vol: io::file, args: []str) void = {
+export fn header(vol: str, args: []str) void = {
+ const vol = volume::openvol(vol);
const vol = match (gpt::from(vol)) {
case let g: *gpt::gpt =>
yield g;