Skip to content

Commit

Permalink
chore: Remove choco until first version is approved
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Dec 2, 2023
1 parent 9919dd2 commit b610af8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 26 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,7 @@ yay -S oatmeal-bin

**Chocolatey**

Note: Version may be outdated as I wait for Chocolately to approve the first release of Oatmeal.

<!-- choco-install start -->

```sh
choco install oatmeal --version=0.6.0
```

<!-- choco-install end -->
Coming soon! Waiting on first version approval.

**Scoop**

Expand Down
34 changes: 17 additions & 17 deletions tools/xtask/src/readme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ pub fn update() {
)
.unwrap();

let version_res = String::from_utf8(
process::Command::new("./target/debug/oatmeal")
.arg("--version")
.output()
.unwrap()
.stdout,
)
.unwrap();
let version = version_res.split(' ').collect::<Vec<&str>>()[1];
// let version_res = String::from_utf8(
// process::Command::new("./target/debug/oatmeal")
// .arg("--version")
// .output()
// .unwrap()
// .stdout,
// )
// .unwrap();
// let version = version_res.split(' ').collect::<Vec<&str>>()[1];

let mut readme = fs::read_to_string("./README.md").unwrap();
let start_help = readme.find("<!-- command-help start -->").unwrap();
Expand All @@ -51,14 +51,14 @@ pub fn update() {
&format!("<!-- command-help-sessions start -->\n```\n{output_help_sessions}```\n"),
);

let start_choco = readme.find("<!-- choco-install start -->").unwrap();
let end_choco = readme.find("<!-- choco-install end -->").unwrap();
readme.replace_range(
start_choco..end_choco,
&format!(
"<!-- choco-install start -->\n```sh\nchoco install oatmeal --version={version}```\n"
),
);
// let start_choco = readme.find("<!-- choco-install start -->").unwrap();
// let end_choco = readme.find("<!-- choco-install end -->").unwrap();
// readme.replace_range(
// start_choco..end_choco,
// &format!(
// "<!-- choco-install start -->\n```sh\nchoco install oatmeal
// --version={version}```\n" ),
// );

let mut f = fs::File::create("./README.md").unwrap();
f.write_all(readme.as_bytes()).unwrap();
Expand Down

0 comments on commit b610af8

Please sign in to comment.