-
-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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>
- Loading branch information
1 parent
0fc7ea6
commit ef0bf91
Showing
30 changed files
with
786 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
Sources/TuistKit/Commands/Dependencies/DependenciesFetchCommand.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import ArgumentParser | ||
import Foundation | ||
import TSCBasic | ||
|
||
enum FetchCategory: String, CaseIterable, RawRepresentable, ExpressibleByArgument { | ||
case dependencies | ||
case plugins | ||
} | ||
|
||
/// A command to fetch any remote content necessary to interact with the project. | ||
struct FetchCommand: ParsableCommand { | ||
static var configuration: CommandConfiguration { | ||
CommandConfiguration( | ||
commandName: "fetch", | ||
abstract: "Fetches any remote content necessary to interact with the project." | ||
) | ||
} | ||
|
||
@Option( | ||
name: .shortAndLong, | ||
help: "The path to the directory that contains the definition of the project.", | ||
completion: .directory | ||
) | ||
var path: String? | ||
|
||
@Argument(help: "Categories to be fetched.") | ||
var fetchCategories: [FetchCategory] = FetchCategory.allCases | ||
|
||
func run() throws { | ||
try FetchService().run( | ||
path: path, | ||
fetchCategories: fetchCategories | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.