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

Switch init to an interactive setup #1616

Merged
merged 118 commits into from
May 23, 2024
Merged

Conversation

chasefleming
Copy link
Member

@chasefleming chasefleming commented May 22, 2024

Closes #1390


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

chasefleming and others added 30 commits April 4, 2024 13:34
Generate standard files with `setup` command
…#1517)

* Bump codecov/codecov-action from 1 to 4

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v1...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump actions/add-to-project from 0.4.1 to 0.6.1

Bumps [actions/add-to-project](https://github.com/actions/add-to-project) from 0.4.1 to 0.6.1.
- [Release notes](https://github.com/actions/add-to-project/releases)
- [Commits](actions/add-to-project@v0.4.1...v0.6.1)

---
updated-dependencies:
- dependency-name: actions/add-to-project
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Create option select prompt

* Create AddMany method in dependency manager

* Update flags naming

* Add SaveState option to DependencyManager

* Add target dir to dependencymanager for imports

* Update Flow dependencies to latest version (#1509)

* Update to latest Cadence Language Server (#1513)

* Save to target dir

* Add dependencies when selected

* Fix tests

* Change to addbysourcestring

* Merge master

* Fix imports

* Remove test

* Use constant for network

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jordan Ribbink <[email protected]>
Co-authored-by: Chase Fleming <[email protected]>
Create new prompt package and separate files for each prompt
Add generic text input prompt and refactor
* Bump codecov/codecov-action from 1 to 4

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v1...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump actions/add-to-project from 0.4.1 to 0.6.1

Bumps [actions/add-to-project](https://github.com/actions/add-to-project) from 0.4.1 to 0.6.1.
- [Release notes](https://github.com/actions/add-to-project/releases)
- [Commits](actions/add-to-project@v0.4.1...v0.6.1)

---
updated-dependencies:
- dependency-name: actions/add-to-project
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update Flow dependencies to latest version (#1509)

* Update to latest Cadence Language Server (#1513)

* Bump google.golang.org/grpc from 1.63.0 to 1.63.2 (#1515)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.63.0 to 1.63.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.63.0...v1.63.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/add-to-project from 0.6.1 to 1.0.1 (#1514)

Bumps [actions/add-to-project](https://github.com/actions/add-to-project) from 0.6.1 to 1.0.1.
- [Release notes](https://github.com/actions/add-to-project/releases)
- [Commits](actions/add-to-project@v0.6.1...v1.0.1)

---
updated-dependencies:
- dependency-name: actions/add-to-project
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jordan Ribbink <[email protected]>

* Bump version to v1.17.1

* Fix embedded flags issue when running Dependency Manager flags manually (#1530)

* Fix embedded flags issue

* Run lint fix

* Use sconfig

* Run goimport fix

---------

Co-authored-by: Chase Fleming <[email protected]>

* Change flags anme

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jordan Ribbink <[email protected]>
Co-authored-by: Chase Fleming <[email protected]>
@chasefleming chasefleming added the Feature A new user feature or a new package API label May 22, 2024
@codecov-commenter
Copy link

codecov-commenter commented May 22, 2024

Codecov Report

Attention: Patch coverage is 28.46890% with 299 lines in your changes are missing coverage. Please review.

Project coverage is 39.09%. Comparing base (78a6b22) to head (862c7e3).

Files Patch % Lines
internal/super/setup.go 0.00% 143 Missing ⚠️
internal/super/scaffolds.go 0.00% 85 Missing ⚠️
internal/super/generate.go 69.93% 33 Missing and 10 partials ⚠️
internal/dependencymanager/dependencyinstaller.go 42.42% 12 Missing and 7 partials ⚠️
internal/accounts/create-interactive.go 0.00% 2 Missing ⚠️
internal/dependencymanager/add.go 33.33% 2 Missing ⚠️
internal/accounts/contract-add.go 0.00% 1 Missing ⚠️
internal/command/command.go 0.00% 1 Missing ⚠️
internal/dependencymanager/install.go 0.00% 1 Missing ⚠️
internal/project/deploy.go 50.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1616      +/-   ##
==========================================
- Coverage   39.99%   39.09%   -0.90%     
==========================================
  Files          51       52       +1     
  Lines        3313     3535     +222     
==========================================
+ Hits         1325     1382      +57     
- Misses       1819     1978     +159     
- Partials      169      175       +6     
Flag Coverage Δ
unittests 39.09% <28.46%> (-0.90%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

internal/config/config.go Outdated Show resolved Hide resolved
internal/quick/init.go Outdated Show resolved Hide resolved
@chasefleming chasefleming requested a review from jribbink May 23, 2024 16:03
@chasefleming chasefleming merged commit dff5f1e into master May 23, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A new user feature or a new package API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EPIC] Enhance CLI init Command with Interactive Setup, Config Automation, and Default Project Structure
3 participants