Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Commit

Permalink
business login support
Browse files Browse the repository at this point in the history
  • Loading branch information
riazXrazor committed Oct 14, 2019
1 parent aa6e552 commit 6591aa2
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 3 deletions.
89 changes: 89 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ udemy-dl 2.0
![udemy-dl usage](https://raw.githubusercontent.com/riazXrazor/udemy-dl/master/assets/udemy-dl.gif)

<!-- toc -->
* [Install](#install)
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
Expand All @@ -22,6 +26,18 @@ $ npm install -g udemy-dl
$ udl COMMAND
running command...
$ udl (-v|--version|version)
udemy-dl/2.0.2 win32-x64 node-v10.16.3
$ udl --help [COMMAND]
USAGE
$ udl COMMAND
...
```
<!-- usagestop -->
```sh-session
$ npm install -g udemy-dl
$ udl COMMAND
running command...
$ udl (-v|--version|version)
udemy-dl/2.0.0 win32-x64 node-v10.16.3
$ udl --help [COMMAND]
USAGE
Expand Down Expand Up @@ -57,6 +73,79 @@ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.1

>Login to udemy.com and displays a list of courses to download.
```
USAGE
$ udl login
OPTIONS
-b, --business=business Business name, in case of Udemy for Business
-e, --export Export the course data as json with links
-o, --output=output Output directory where the videos will be save, defaults to current directory
-p, --password=password Udemy password
-r, --url=url Url of the couse to be downloaded
-u, --username=username Udemy username
DESCRIPTION
>Login to udemy.com and displays a list of courses to download.
```

_See code: [src\commands\login.js](https://github.com/riazXrazor/udemy-dl/blob/v2.0.2/src\commands\login.js)_

## `udl reset`

>Erase all login credentials stored and download progress.
```
USAGE
$ udl reset
OPTIONS
-d, --downloadOnly Erase downloading progress only
-l, --loginOnly Erase login credentials only
DESCRIPTION
>Erase all login credentials stored and download progress.
```

_See code: [src\commands\reset.js](https://github.com/riazXrazor/udemy-dl/blob/v2.0.2/src\commands\reset.js)_

## `udl update [CHANNEL]`

update the udl CLI

```
USAGE
$ udl update [CHANNEL]
```

_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v1.3.9/src\commands\update.ts)_
<!-- commandsstop -->
* [`udl help [COMMAND]`](#udl-help-command)
* [`udl login`](#udl-login)
* [`udl reset`](#udl-reset)
* [`udl update [CHANNEL]`](#udl-update-channel)

## `udl help [COMMAND]`

display help for udl

```
USAGE
$ udl help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.1/src\commands\help.ts)_

## `udl login`

>Login to udemy.com and displays a list of courses to download.
```
USAGE
$ udl login
Expand Down
1 change: 0 additions & 1 deletion oclif.manifest.json

This file was deleted.

2 changes: 0 additions & 2 deletions src/commands/login.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const {flags} = require('@oclif/command')
const Base = require('./../Base')
const cli = require('cli-ux').default

class LoginCommand extends Base {
async run() {
const {flags} = this.parse(LoginCommand)
Expand Down

0 comments on commit 6591aa2

Please sign in to comment.