Skip to content

Create note from unix pipe stream only with import command #18

@Yukaii

Description

@Yukaii

The mixed-use of oclif multi command/single command causes flag parsing weird sometimes.

hackmd-cli/src/index.ts

Lines 20 to 30 in 1f8f30f

if (pipeString) {
try {
const url = await APIClient.newNote(pipeString)
this.log(`Your note is available at ${url}`)
} catch (err) {
this.error(err)
}
} else {
await multiRun()
process.exit(0)
}

I want to move the pipe import command under import.ts command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions