This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fleetctl: destroy using wildcards can search in the repository
Curerntly, fleetctl destroy *.service, it will search the units in the local directory. The args with wildcards have already parsed by golang package before be passed into runDestroyUnits. So runDestroyUnits cannot do anything. This patch support wildcards just search in the repository, not from local directory. But need support a new interface. The new interface is: fleetctl destroy "xx*.service". We found that if bracket the service name, the arg will not be parsed by golang package to local directory. Then we can do match it with the service name in the repository. Fixes #710
- Loading branch information