forked from Elara6331/itd
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			322 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			322 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package main
 | 
						|
 | 
						|
import "github.com/urfave/cli/v2"
 | 
						|
 | 
						|
func notify(c *cli.Context) error {
 | 
						|
	// Ensure required arguments
 | 
						|
	if c.Args().Len() != 2 {
 | 
						|
		return cli.Exit("Command notify requires two arguments", 1)
 | 
						|
	}
 | 
						|
 | 
						|
	err := client.Notify(c.Context, c.Args().Get(0), c.Args().Get(1))
 | 
						|
	if err != nil {
 | 
						|
		return err
 | 
						|
	}
 | 
						|
 | 
						|
	return nil
 | 
						|
}
 |