Documentation ¶
Overview ¶
Package updater is used to update the cli
Copyright © 2020 Addshore ¶
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package updater is used to update the cli ¶
Copyright © 2020 Addshore ¶
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package updater is used to update the cli ¶
Copyright © 2020 Addshore ¶
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package updater is used to update the cli ¶
Copyright © 2020 Addshore ¶
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- func CanUpdate(currentVersion string, gitSummary string, verboseOutput bool) (bool, string)
- func CanUpdateDaily(currentVersion string, gitSummary string, verboseOutput bool) (bool, string)
- func CanUpdateFromAddshore(currentVersion string, gitSummary string, verboseOutput bool) (bool, *selfupdate.Release)
- func CanUpdateFromWikimedia(currentVersion string, gitSummary string, verboseOutput bool) (bool, string)
- func Update(currentVersion string, gitSummary string, verboseOutput bool) (bool, string)
- func UpdateFromAddshore(currentVersion string, gitSummary string, verboseOutput bool) (success bool, message string)
- func UpdateFromAddshoreTo(release selfupdate.Release, verboseOutput bool) (success bool, message string)
- func UpdateFromWikimedia(currentVersion string, gitSummary string, verboseOutput bool) (success bool, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanUpdate ¶
CanUpdate will check for updates
func CanUpdateDaily ¶
CanUpdateDaily will check for updates at most once a day
func CanUpdateFromAddshore ¶
func CanUpdateFromAddshore(currentVersion string, gitSummary string, verboseOutput bool) (bool, *selfupdate.Release)
CanUpdateFromAddshore ...
func CanUpdateFromWikimedia ¶
func CanUpdateFromWikimedia(currentVersion string, gitSummary string, verboseOutput bool) (bool, string)
CanUpdateFromWikimedia ...
func Update ¶
Update perform the latest update
func UpdateFromAddshore ¶
func UpdateFromAddshore(currentVersion string, gitSummary string, verboseOutput bool) (success bool, message string)
UpdateFromAddshore ...
Types ¶
This section is empty.