You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Replace anykey with inquirer
* migrate to oclif/core v4
* Switch to npm from yarn
* Update dependabot.yml
* Add conventional changelog
* Fix browser open to login, add script for running example, fill out README
* Remove legacy client, update packages, switch to node uuid
* Update sinon
* Upgrade to eslint 8, apply rules fixes
* Add a few more examples, adjust lint rules
* Update yargs-parser
* Add interactive option to example, fix output
* lint cleanup
This package provides the core functionality for Heroku CLI commands, including a comprehensive set of completion handlers for various Heroku resources. It serves as the foundation for building Heroku CLI commands with built-in support for command-line completion.
15
+
16
+
## Features
17
+
18
+
### Completion Handlers
19
+
20
+
The package includes completion handlers for various Heroku resources:
21
+
22
+
-**Apps**: Autocomplete for Heroku application names
23
+
-**Addons**: Autocomplete for add-ons associated with specific apps
24
+
-**Dynos**: Autocomplete for dyno names within apps
25
+
-**Buildpacks**: Common Heroku buildpack options
26
+
-**Dyno Sizes**: Available dyno size options
27
+
-**Files**: Local file system completion
28
+
-**Pipelines**: Heroku pipeline names
29
+
-**Process Types**: Process types from Procfile
30
+
-**Regions**: Available Heroku regions
31
+
-**Git Remotes**: Git remote names
32
+
-**Roles**: User role options (admin, collaborator, member, owner)
33
+
-**Scopes**: Permission scope options
34
+
-**Spaces**: Heroku Private Spaces
35
+
-**Stacks**: Available Heroku stacks
36
+
-**Stages**: Pipeline stage options
37
+
-**Teams**: Heroku team names
38
+
39
+
### APIClient
40
+
41
+
The package includes a built-in `APIClient` for making authenticated requests to the Heroku Platform API:
42
+
43
+
- Handles authentication and request formatting
44
+
- Provides a simple interface for making GET requests to Heroku resources
45
+
- Automatically parses JSON responses
46
+
- Used internally by completion handlers to fetch resource lists
47
+
- Supports configurable request options through the CLI config
48
+
49
+
Example usage:
50
+
```typescript
51
+
const heroku =newAPIClient(config)
52
+
const {body: resources} =awaitheroku.get('/apps')
53
+
```
54
+
55
+
## Usage
56
+
57
+
This package is primarily used as a dependency in other Heroku CLI plugins and commands. It provides the base functionality needed to implement Heroku CLI commands with proper completion support.
58
+
59
+
## Development
60
+
61
+
Built with TypeScript and uses the [oclif](https://oclif.io) framework for CLI command development.
0 commit comments