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

feat: add generate command #183

Merged
merged 1 commit into from
Sep 4, 2021
Merged

Conversation

suzuki-shunsuke
Copy link
Member

@suzuki-shunsuke suzuki-shunsuke commented Sep 4, 2021

Close #182

$ aqua g

Select the package interactively.

  direnv (standard)                                                                                                                                                               
  consul (standard)                                                                                                                                                               
  conftest (standard)                                                                                                                                                             
  suzuki-shunsuke/cmdx (standard)                                                                                                                                                 
  suzuki-shunsuke/circleci-config-merge (standard)                                                                                                                                
  circleci-cli (standard)                                                                                                                                                         
  suzuki-shunsuke/ci-info (standard)                                                                                                                                              
  suzuki-shunsuke/akoi (standard)                                                                                                                                                 
  golangci-lint (local)                                                                                                                                                           
> cmdx (inline)                                                                                                                                                                   
  47/47                                                                                                                                                                           
>                                                                                                                                                                                 

If the selected package type is github_release, select the package version interactively.

  v1.37.0                                                                                                                                                                         
  v1.37.1                                                                                                                                                                         
  v1.38.0                                                                                                                                                                         
  v1.39.0                                                                                                                                                                         
  v1.40.0                                                                                                                                                                         
  v1.40.1                                                                                                                                                                         
  v1.41.0                                                                                                                                                                         
  v1.41.1                                                                                                                                                                         
> v1.42.0                                                                                                                                                                         
  30/30                                                                                                                                                                           
>                                                                                                                                                                                 

After selecting the package and the package version, the configuration is outputted.

$ aqua g
- name: golangci-lint
  registry: local
  version: v1.42.0

The interactive UI is implemented with ktr0731/go-fuzzyfinder.

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Sep 4, 2021
@suzuki-shunsuke suzuki-shunsuke added this to the v0.5.1 milestone Sep 4, 2021
@suzuki-shunsuke suzuki-shunsuke merged commit 0afa9d9 into main Sep 4, 2021
@suzuki-shunsuke suzuki-shunsuke deleted the feat/support-generate-package branch September 4, 2021 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generate package
1 participant