示例#1
0
文件: api.go 项目: alecu/snappy
func (inst *snapInstruction) deactivate() interface{} {
	return snappy.SetActive(inst.pkg, false, inst)
}
示例#2
0
func (x *cmdActivate) doActivate() error {
	return snappy.SetActive(x.Args.Snap, x.activate, progress.MakeProgressBar())
}
示例#3
0
func (inst *packageInstruction) deactivate() interface{} {
	return snappy.SetActive(inst.pkg, false, inst.prog)
}
示例#4
0
func (inst *packageInstruction) activate() interface{} {
	return snappy.SetActive(inst.pkg, true, inst)
}