Skip to content

Commit

Permalink
fix: Use github.com by default
Browse files Browse the repository at this point in the history
  • Loading branch information
siketyan committed Nov 5, 2022
1 parent 7a603f4 commit c264b59
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/cmd/path.rs
@@ -1,8 +1,11 @@
use crate::path::PartialPath;
use crate::root::Root;
use std::path::PathBuf;

use anyhow::{anyhow, Result};
use clap::Parser;
use std::path::PathBuf;

use crate::path::PartialPath;
use crate::root::Root;
use crate::url::Host;

#[derive(Debug, Parser)]
pub struct Cmd {
Expand All @@ -21,7 +24,7 @@ impl Cmd {
let root = Root::find()?;
let path = PartialPath {
root: &root,
host: self.host,
host: self.host.or_else(|| Some(Host::GitHub.to_string())),
owner: self.owner,
repo: self.repo,
};
Expand Down

0 comments on commit c264b59

Please sign in to comment.