Skip to content

Commit

Permalink
ci: add release-please workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Aug 6, 2023
1 parent c3f390f commit 8174640
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 10 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: release-please

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: rust
package-name: man_completions
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# man_completions

Parse manpages to get Zsh completions
11 changes: 1 addition & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
mod parse;
mod gen;

use parse::Parsed;
use std::path::PathBuf;

pub fn get_manpath() -> Option<Vec<PathBuf>> {
Expand All @@ -20,16 +21,6 @@ static SECTIONS: [&str; 8] = [
"man1", "man2", "man3", "man4", "man5", "man6", "man7", "man8",
];

pub struct Parsed {
cmd_name: String,
opts: Vec<Opt>,
}

pub struct Opt {
name: String,
desc: String,
}

pub fn enumerate_manpages(manpath: Vec<PathBuf>) -> Vec<PathBuf> {
let mut res = vec![];

Expand Down
11 changes: 11 additions & 0 deletions src/parse/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@

mod parse_man;


pub struct Parsed {
cmd_name: String,
opts: Vec<Opt>,
}

pub struct Opt {
name: String,
desc: String,
}

0 comments on commit 8174640

Please sign in to comment.