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

Tuist executable #3494

Merged
merged 7 commits into from
Sep 26, 2021
Merged

Tuist executable #3494

merged 7 commits into from
Sep 26, 2021

Conversation

fortmarek
Copy link
Member

@fortmarek fortmarek commented Sep 22, 2021

Short description 📝

In this PR I added a functionality where if you run tuist xxx and xxx is not tuist's command, tuist will automatically try to run an executable from PATH.

Checklist ✅

  • The code architecture and patterns are consistent with the rest of the codebase.
  • The changes have been tested following the documented guidelines.
  • In case the PR introduces changes that affect users, the documentation has been updated.

Comment on lines 64 to 69
} else {
executeCommand = {
var customCommandArguments = processedArguments
customCommandArguments[0] = "tuist-\(customCommandArguments[0])"
try System.shared.runAndPrint(customCommandArguments)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check somehow if the command exists?
Otherwise if I do a typo (e.g. tuist generata), it might be hard to understand what's happening

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is a very good point, yeah, we can check with which xxx, I'll do that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's a good idea. What about extracting that logic into its own component that we can test in isolation. Otherwise this TuistCommand will grow significantly in responsibilities.

projects/docs/docs/commands/task.md Outdated Show resolved Hide resolved
Copy link
Contributor

@pepicrft pepicrft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides what @danyf90 mentioned. The changes look good!

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
@fortmarek fortmarek merged commit 7338238 into tuist-plugins-2.0 Sep 26, 2021
@fortmarek fortmarek deleted the tuist-executable branch September 26, 2021 12:01
fortmarek added a commit that referenced this pull request Sep 30, 2021
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Oct 15, 2021
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Oct 20, 2021
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Oct 27, 2021
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Oct 27, 2021
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Nov 3, 2021
* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* WIP: Fetch release

* Install tasks to release dir

* Execute plugin task

* Add TuistServiceTests

* Add FetchServiceTests

* Remove DependenciesFetchCommand

* Add fetch plugins test

* Fix PluginServiceTests

* Add test for new logic in PluginServiceTests

* Minor changes

* Revert changes to Package.resolved

* Add missing throws

* Rename gitID to gitReference

* Move to Swift-based APIs

* Fix fetch command

* Uncomment analytics code

* Fix acceptance tests for tuist edit

* Restore Package.resolved

* Fix plugins.feature acceptance test

* Add fetch to tasks.feature

* Add fetch to tasks.feature

* Add fetch to scaffold.feature

* Fix scaffold.feature

* Fix tasks.feature

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Nov 10, 2021
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Nov 10, 2021
* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* WIP: Fetch release

* Install tasks to release dir

* Execute plugin task

* Add TuistServiceTests

* Add FetchServiceTests

* Remove DependenciesFetchCommand

* Add fetch plugins test

* Fix PluginServiceTests

* Add test for new logic in PluginServiceTests

* Minor changes

* Revert changes to Package.resolved

* Add missing throws

* Rename gitID to gitReference

* Move to Swift-based APIs

* Fix fetch command

* Uncomment analytics code

* Fix acceptance tests for tuist edit

* Restore Package.resolved

* Fix plugins.feature acceptance test

* Add fetch to tasks.feature

* Add fetch to tasks.feature

* Add fetch to scaffold.feature

* Fix scaffold.feature

* Fix tasks.feature

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Nov 11, 2021
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Nov 11, 2021
* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* WIP: Fetch release

* Install tasks to release dir

* Execute plugin task

* Add TuistServiceTests

* Add FetchServiceTests

* Remove DependenciesFetchCommand

* Add fetch plugins test

* Fix PluginServiceTests

* Add test for new logic in PluginServiceTests

* Minor changes

* Revert changes to Package.resolved

* Add missing throws

* Rename gitID to gitReference

* Move to Swift-based APIs

* Fix fetch command

* Uncomment analytics code

* Fix acceptance tests for tuist edit

* Restore Package.resolved

* Fix plugins.feature acceptance test

* Add fetch to tasks.feature

* Add fetch to tasks.feature

* Add fetch to scaffold.feature

* Fix scaffold.feature

* Fix tasks.feature

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Nov 16, 2021
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Nov 16, 2021
* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* WIP: Fetch release

* Install tasks to release dir

* Execute plugin task

* Add TuistServiceTests

* Add FetchServiceTests

* Remove DependenciesFetchCommand

* Add fetch plugins test

* Fix PluginServiceTests

* Add test for new logic in PluginServiceTests

* Minor changes

* Revert changes to Package.resolved

* Add missing throws

* Rename gitID to gitReference

* Move to Swift-based APIs

* Fix fetch command

* Uncomment analytics code

* Fix acceptance tests for tuist edit

* Restore Package.resolved

* Fix plugins.feature acceptance test

* Add fetch to tasks.feature

* Add fetch to tasks.feature

* Add fetch to scaffold.feature

* Fix scaffold.feature

* Fix tasks.feature

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Nov 19, 2021
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Nov 19, 2021
* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* WIP: Fetch release

* Install tasks to release dir

* Execute plugin task

* Add TuistServiceTests

* Add FetchServiceTests

* Remove DependenciesFetchCommand

* Add fetch plugins test

* Fix PluginServiceTests

* Add test for new logic in PluginServiceTests

* Minor changes

* Revert changes to Package.resolved

* Add missing throws

* Rename gitID to gitReference

* Move to Swift-based APIs

* Fix fetch command

* Uncomment analytics code

* Fix acceptance tests for tuist edit

* Restore Package.resolved

* Fix plugins.feature acceptance test

* Add fetch to tasks.feature

* Add fetch to tasks.feature

* Add fetch to scaffold.feature

* Fix scaffold.feature

* Fix tasks.feature

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Nov 20, 2021
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Nov 20, 2021
* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* WIP: Fetch release

* Install tasks to release dir

* Execute plugin task

* Add TuistServiceTests

* Add FetchServiceTests

* Remove DependenciesFetchCommand

* Add fetch plugins test

* Fix PluginServiceTests

* Add test for new logic in PluginServiceTests

* Minor changes

* Revert changes to Package.resolved

* Add missing throws

* Rename gitID to gitReference

* Move to Swift-based APIs

* Fix fetch command

* Uncomment analytics code

* Fix acceptance tests for tuist edit

* Restore Package.resolved

* Fix plugins.feature acceptance test

* Add fetch to tasks.feature

* Add fetch to tasks.feature

* Add fetch to scaffold.feature

* Fix scaffold.feature

* Fix tasks.feature

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Dec 2, 2021
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Dec 2, 2021
* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* WIP: Fetch release

* Install tasks to release dir

* Execute plugin task

* Add TuistServiceTests

* Add FetchServiceTests

* Remove DependenciesFetchCommand

* Add fetch plugins test

* Fix PluginServiceTests

* Add test for new logic in PluginServiceTests

* Minor changes

* Revert changes to Package.resolved

* Add missing throws

* Rename gitID to gitReference

* Move to Swift-based APIs

* Fix fetch command

* Uncomment analytics code

* Fix acceptance tests for tuist edit

* Restore Package.resolved

* Fix plugins.feature acceptance test

* Add fetch to tasks.feature

* Add fetch to tasks.feature

* Add fetch to scaffold.feature

* Fix scaffold.feature

* Fix tasks.feature

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Dec 26, 2021
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Dec 26, 2021
* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* WIP: Fetch release

* Install tasks to release dir

* Execute plugin task

* Add TuistServiceTests

* Add FetchServiceTests

* Remove DependenciesFetchCommand

* Add fetch plugins test

* Fix PluginServiceTests

* Add test for new logic in PluginServiceTests

* Minor changes

* Revert changes to Package.resolved

* Add missing throws

* Rename gitID to gitReference

* Move to Swift-based APIs

* Fix fetch command

* Uncomment analytics code

* Fix acceptance tests for tuist edit

* Restore Package.resolved

* Fix plugins.feature acceptance test

* Add fetch to tasks.feature

* Add fetch to tasks.feature

* Add fetch to scaffold.feature

* Fix scaffold.feature

* Fix tasks.feature

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Jan 4, 2022
* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Jan 4, 2022
* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* WIP: Fetch release

* Install tasks to release dir

* Execute plugin task

* Add TuistServiceTests

* Add FetchServiceTests

* Remove DependenciesFetchCommand

* Add fetch plugins test

* Fix PluginServiceTests

* Add test for new logic in PluginServiceTests

* Minor changes

* Revert changes to Package.resolved

* Add missing throws

* Rename gitID to gitReference

* Move to Swift-based APIs

* Fix fetch command

* Uncomment analytics code

* Fix acceptance tests for tuist edit

* Restore Package.resolved

* Fix plugins.feature acceptance test

* Add fetch to tasks.feature

* Add fetch to tasks.feature

* Add fetch to scaffold.feature

* Fix scaffold.feature

* Fix tasks.feature

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
fortmarek added a commit that referenced this pull request Jan 5, 2022
* Edit CHANGELOG

* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Plugins archive (#3531)

Fix build issues

Build and zip executable products

Add tests for buildFatReleaseBinary

Write tests for PluginsArchiveService

Use plugin instead of plugins

Add success print

Format swift code

Update Sources/TuistKit/Services/PluginArchiveService.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Tuist plugins 2.0 fetch (#3577)

* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* WIP: Fetch release

* Install tasks to release dir

* Execute plugin task

* Add TuistServiceTests

* Add FetchServiceTests

* Remove DependenciesFetchCommand

* Add fetch plugins test

* Fix PluginServiceTests

* Add test for new logic in PluginServiceTests

* Minor changes

* Revert changes to Package.resolved

* Add missing throws

* Rename gitID to gitReference

* Move to Swift-based APIs

* Fix fetch command

* Uncomment analytics code

* Fix acceptance tests for tuist edit

* Restore Package.resolved

* Fix plugins.feature acceptance test

* Add fetch to tasks.feature

* Add fetch to tasks.feature

* Add fetch to scaffold.feature

* Fix scaffold.feature

* Fix tasks.feature

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Plugin commands (#3663)

* Add plugin build command

* Add unit tests

* Add plugin acceptance tests

* Update tuist_plugin submodule

* Plugins 2.0: dependencies commands (#3656)

* Fix fetch call when generating via fourier

* Remove clean command exclusive to dependencies

* WIP: tuist update

* Add update flag to tuist fetch

* Reuse code for fetch and update of dependencies

* Fix dependencies update call in acceptance tests

* Format swift code

* Add fetch to tuist focus in fourier

* Add TuistGraph as a dependency of TuistSupportTesting

* Fix fourier tests

* Restructure CleanCategory to mitigate code duplication

* Format swift code

* Lint code

* Update fourier commands

* Add missing ProjectDescription dependency

* Fix CleanServiceTests

* Fix PluginArchiveServiceTests

* Tuist plugins 2.0 ProjectAutomation (#3816)

* WIP: ProjectAutomation for new tasks

* Add swiftToolsSupportDependency to ProjectAutomation

* Make graph method public

* Update tuist_plugin submodule

* Use ENV variable instead of commandline argument for passing tusit binary path

* Read file instead of stdout

* Fix tests

* Remove old tasks and ProjectAutomation

* Fix acceptance tests

* Update error documentation

* Check path in TuistServiceTests

* Format swift code

* Tuist plugin

* Fix ManifestTests

* Fix test_edit_when_there_are_helpers_and_setup_and_config_and_dependencies test

* Add path argument to graph

* Remove plugin zip path if it exists

* Format swift code

* Fix tasks.feature

* Remove log

* Format swift code

* Fix lint issues

* Add docs for tuist task plugins (#3898)

* Add docs for tuist task plugins

* Update docs for fetching dependencies

* Address code review comments

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>
danieleformichelli added a commit that referenced this pull request Jan 28, 2022
* 3️⃣ Remove deprecated deprecated initializers for `FileLists`, `Headers`, and `HTTPURLResponse` (#3936)

* chore: remove deprecated initializers for `FileLists`, `Headers`, and `HTTPURLResponse`

* fix: fix fixtures

* Plugins 2.0 (#3492)

* Edit CHANGELOG

* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Plugins archive (#3531)

Fix build issues

Build and zip executable products

Add tests for buildFatReleaseBinary

Write tests for PluginsArchiveService

Use plugin instead of plugins

Add success print

Format swift code

Update Sources/TuistKit/Services/PluginArchiveService.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Tuist plugins 2.0 fetch (#3577)

* Tuist executable (#3494)

* Search for executable in path with tuist prefix if not tuist command

* Add acceptance test for new task

* Update documentation

* Check if executable exists

* Update projects/docs/docs/commands/task.md

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Update Sources/TuistKit/Commands/TuistCommand.swift

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Fix finding command

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* WIP: Fetch release

* Install tasks to release dir

* Execute plugin task

* Add TuistServiceTests

* Add FetchServiceTests

* Remove DependenciesFetchCommand

* Add fetch plugins test

* Fix PluginServiceTests

* Add test for new logic in PluginServiceTests

* Minor changes

* Revert changes to Package.resolved

* Add missing throws

* Rename gitID to gitReference

* Move to Swift-based APIs

* Fix fetch command

* Uncomment analytics code

* Fix acceptance tests for tuist edit

* Restore Package.resolved

* Fix plugins.feature acceptance test

* Add fetch to tasks.feature

* Add fetch to tasks.feature

* Add fetch to scaffold.feature

* Fix scaffold.feature

* Fix tasks.feature

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* Plugin commands (#3663)

* Add plugin build command

* Add unit tests

* Add plugin acceptance tests

* Update tuist_plugin submodule

* Plugins 2.0: dependencies commands (#3656)

* Fix fetch call when generating via fourier

* Remove clean command exclusive to dependencies

* WIP: tuist update

* Add update flag to tuist fetch

* Reuse code for fetch and update of dependencies

* Fix dependencies update call in acceptance tests

* Format swift code

* Add fetch to tuist focus in fourier

* Add TuistGraph as a dependency of TuistSupportTesting

* Fix fourier tests

* Restructure CleanCategory to mitigate code duplication

* Format swift code

* Lint code

* Update fourier commands

* Add missing ProjectDescription dependency

* Fix CleanServiceTests

* Fix PluginArchiveServiceTests

* Tuist plugins 2.0 ProjectAutomation (#3816)

* WIP: ProjectAutomation for new tasks

* Add swiftToolsSupportDependency to ProjectAutomation

* Make graph method public

* Update tuist_plugin submodule

* Use ENV variable instead of commandline argument for passing tusit binary path

* Read file instead of stdout

* Fix tests

* Remove old tasks and ProjectAutomation

* Fix acceptance tests

* Update error documentation

* Check path in TuistServiceTests

* Format swift code

* Tuist plugin

* Fix ManifestTests

* Fix test_edit_when_there_are_helpers_and_setup_and_config_and_dependencies test

* Add path argument to graph

* Remove plugin zip path if it exists

* Format swift code

* Fix tasks.feature

* Remove log

* Format swift code

* Fix lint issues

* Add docs for tuist task plugins (#3898)

* Add docs for tuist task plugins

* Update docs for fetching dependencies

* Address code review comments

Co-authored-by: Daniele Formichelli <df@bendingspoons.com>

* [3.0] Merge pull request #3949 from tuist/laxmorek/bump-swift-argument-parser

Update `swift-argument-parser`: `.upToNextMajor(from: "0.4.3")` -> `.upToNextMajor(from: "1.0.0")`.

* [3.0] Fixed changelog.

* feat: add `type` parameter to `TargetDependency.sdk` (#3961)

* feat: replace SourceFileGlob init with static method (#3960)

* feat: replace SourceFileGlob init with static method

#393

* fix: glob static method should be added to ProjectDescription

* chore: lint

* fix: compilation error

* fix: fixtures

* fix: fix test compilation error

* fix: test compilation error

* chore: try to fix .build folder caching

* feat: move `disableSynthesizedResourceAccessors` from `Config.swift` to `Project.ProjectOption` (#3963)

* feat: move `disableSynthesizedResourceAccessors` from `Config.swift` to `Project.ProjectOption`

* chore: linting

* fix: fix fixture

* feat: move disableBundleAccessors to ProjectOption

* fix: compilation errors

* chore: fix Project.swift

* chore: formatting

* 3️⃣ Added `sources` property to `ProjectAutomation.Target` model. (#3988)

* [extend-graph-with-sources] Added `sources` property to `ProjectAutomation.Target` model.

* [extend-graph-with-sources] `./fourier lint tuist --fix`

* [extend-graph-with-sources] Updated docs.

* 3️⃣ Drop `tuist lint` command (#4001)

* 3️⃣  Merge `tuist focus` and `tuist generate` command (#3912)

* Remove unused import

* Fix plugins loading for Dependencies.swift

* Fix lint

* Fix unit test

* Update step definition for `tuist fetch`

* fix: fix app_with_spm_dependencies fixturre

Co-authored-by: Marek Fořt <marekfort@me.com>
Co-authored-by: Luis Padron <luis.padron@compass.com>
Co-authored-by: Kamil Harasimowicz <kamil.harasimowicz@gmail.com>
Co-authored-by: Alfredo Delli Bovi <alfredo.dellibovi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants