Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add export command #16

Open
greatislander opened this issue Jan 28, 2018 · 1 comment
Open

Add export command #16

greatislander opened this issue Jan 28, 2018 · 1 comment
Labels
dev tools related to tools/processes we might use in software development enhancement

Comments

@greatislander
Copy link
Contributor

That would be nice.

@greatislander greatislander modified the milestones: 1.6.0, Future Release Jan 28, 2018
@greatislander greatislander changed the title export command Add export command Mar 15, 2018
@greatislander greatislander modified the milestones: Future Release, 1.9.0 Mar 20, 2018
@greatislander
Copy link
Contributor Author

greatislander commented Mar 20, 2018

Command

$ wp pb export --url=<url> --formats=<formats>

Params

url: book URL
formats: individual or comma-separated, any of:

  • pdf
  • print_pdf
  • epub
  • epub3
  • mobi
  • xhtml
  • odt
  • htmlbook
  • wxr
  • vanillawxr

Or: we could get a list of available export formats from Pressbooks? Is this currently possible?

Features

  • Given an invalid book URL, STDERR should contain:
That book does not exist.
  • Given a valid book URL and a valid export format, STDOUT should contain the following:
<format> exported to <path>.
  • Given a valid book URL and an invalid export format, STDERR should contain the following:
<format> is not a supported export format.
  • Given a valid book URL and a valid export format/list of valid export formats, STDOUT should contain the following for each export format:
<format> exported to <path>.
  • Given a valid book URL and a mixed list of valid and invalid export formats, STDOUT should contain the following for each valid export format:
<format> exported to <path>.

And STDERR should contain the following for each invalid export format:

<format> is not a supported export format.

@dac514 dac514 removed their assignment Jan 9, 2019
greatislander pushed a commit that referenced this issue Jan 11, 2019
Bumps [macaddress](https://github.com/scravy/node-macaddress) from 0.2.8 to 0.2.9. **This update includes security fixes.**
<details>
<summary>Vulnerabilities fixed</summary>

*Sourced from [The npm Advisory Database](https://npmjs.com/advisories/654).*

> **Command Injection**
> All versions of `macaddress` are vulnerable to command injection. For this vulnerability to be exploited an attacker needs to control the `iface` argument to the `one` method.
> 
> Affected versions: <= 0.2.8

*Sourced from The GitHub Security Advisory Database.*

> **Critical severity vulnerability that affects macaddress**
> The macaddress module before 0.2.9 for Node.js is prone to an arbitrary command injection flaw, due to allowing unsanitized input to an exec (rather than execFile) call.
> 
> Affected versions: < 0.2.9

*Sourced from [The Node Security Working Group](https://github.com/nodejs/security-wg/blob/master/vuln/npm/427.json).*

> **Command Injection - Generic**
> `macaddress` concatenates unsanitized input into exec() command
> 
> Affected versions: <=0.2.8

</details>
<details>
<summary>Release notes</summary>

*Sourced from [macaddress's releases](https://github.com/scravy/node-macaddress/releases).*

> ## v0.2.9
> * Fixes an arbitrary command execution vulnerability (https://github-redirect.dependabot.com/scravy/node-macaddress/pull/16/files)
> * Adds support for `freebsd`
> * Fixes a few typos
</details>
<details>
<summary>Commits</summary>

- [`3379146`](scravy/node-macaddress@3379146) Added note about vulnerability
- [`4d311a5`](scravy/node-macaddress@4d311a5) Set version 0.2.9
- [`b83e3f8`](scravy/node-macaddress@b83e3f8) Merge pull request [#11](https://github-redirect.dependabot.com/scravy/node-macaddress/issues/11) from TheBeastOfCaerbannog/master
- [`68ecfae`](scravy/node-macaddress@68ecfae) Added explicit LICENSE file recognizable by github
- [`e3e76d5`](scravy/node-macaddress@e3e76d5) Support for freebsd as per pull [#16](https://github-redirect.dependabot.com/scravy/node-macaddress/issues/16)
- [`6ab7a11`](scravy/node-macaddress@6ab7a11) Merge pull request [#13](https://github-redirect.dependabot.com/scravy/node-macaddress/issues/13) from roebuk/master
- [`4d10ca6`](scravy/node-macaddress@4d10ca6) Merge pull request [#17](https://github-redirect.dependabot.com/scravy/node-macaddress/issues/17) from dekoding/patch-1
- [`358fd59`](scravy/node-macaddress@358fd59) Merge pull request [#20](https://github-redirect.dependabot.com/scravy/node-macaddress/issues/20) from flypapertech/fixCommandInjection
- [`214ad00`](scravy/node-macaddress@214ad00) Run travis against osx and linux, travis doesn't do windows
- [`7b0a488`](scravy/node-macaddress@7b0a488) Fix for Node 0.8 thru 0.10
- Additional commits viewable in [compare view](scravy/node-macaddress@0.2.8...0.2.9)
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=macaddress&package-manager=npm_and_yarn&previous-version=0.2.8&new-version=0.2.9)](https://dependabot.com/compatibility-score.html?dependency-name=macaddress&package-manager=npm_and_yarn&previous-version=0.2.8&new-version=0.2.9)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

**Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com).

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

</details>
@dac514 dac514 removed this from the 1.9.0 milestone Apr 8, 2019
@SteelWagstaff SteelWagstaff added dev tools related to tools/processes we might use in software development enhancement labels Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev tools related to tools/processes we might use in software development enhancement
Projects
None yet
Development

No branches or pull requests

3 participants