feat(import), prompt available paths from imported components to dependents #8505
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The flag
--dependents
ofbit import
brings all the components linked from the workspace components to the specified component (target). In many cases it's not needed and the user is interested in a specific path from the workspace to the component.This PR makes the following changes:
--dependents-dry-run
is deprecated. Now it's the default. It always asks for confirmation before bringing in the dependents.--dependents-through
flag is renamed to--dependents-via
.--silent
is introduced to avoid all prompts of--dependents
and--dependents-via
Example with less than 10 paths:
![Screenshot 2024-02-07 at 9 56 57 AM](https://private-user-images.githubusercontent.com/1963573/303026763-61c896ca-e9b2-40fc-8e58-778bfe5d051c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyMzkzNDksIm5iZiI6MTcyMDIzOTA0OSwicGF0aCI6Ii8xOTYzNTczLzMwMzAyNjc2My02MWM4OTZjYS1lOWIyLTQwZmMtOGU1OC03NzhiZmU1ZDA1MWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDZUMDQxMDQ5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDAyNDllNjA1OGU5YjY4ODBkMWU0NWFmNWE2NDNhZTA2ZDUxMGQ1ZTIyM2QwOTc4NWZkMDllZjMyMWYzZmJiOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.VtIgAgsOI-t77KTe7Il4SgqW-0bQB8v2fnkJ_Xwbj6o)
Example with more than 10 paths:
![Screenshot 2024-02-07 at 9 46 54 AM](https://private-user-images.githubusercontent.com/1963573/303026774-0264ae0f-3786-42cb-8cc4-a699ba04529c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyMzkzNDksIm5iZiI6MTcyMDIzOTA0OSwicGF0aCI6Ii8xOTYzNTczLzMwMzAyNjc3NC0wMjY0YWUwZi0zNzg2LTQyY2ItOGNjNC1hNjk5YmEwNDUyOWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDZUMDQxMDQ5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODhkNzhmNDk4NDMwYTBhNmNmYWQyODE2MmViNzlhY2IzZmM0ZWFhNDYwY2U3YzljMzdjNjUzNTBjYjY3MmMzNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.wqaBJx_c3OwxPU9M2pNwXPFiF3QCYjrguHuRABnZZBw)