nargo_release/lib.rs
1//! Nargo release management.
2
3#![warn(missing_docs)]
4
5use nargo_types::Result;
6use std::path::{Path, PathBuf};
7
8/// Release manager.
9pub struct ReleaseManager {
10 _root: PathBuf,
11}
12
13impl ReleaseManager {
14 /// Create a new release manager.
15 pub fn new(root: &Path) -> Result<Self> {
16 Ok(Self { _root: root.to_path_buf() })
17 }
18}
19
20/// Publish a package to the registry.
21pub async fn publish(_root: &Path, _registry: Option<&str>) -> Result<()> {
22 println!("Publishing package...");
23 Ok(())
24}
25
26/// Print the dependency tree.
27pub fn print_tree(_root: &Path) -> Result<()> {
28 println!("Dependency tree:");
29 Ok(())
30}