mirror of
				https://github.com/mitchell/selfpass.git
				synced 2025-10-31 06:05:26 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			300 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			300 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package commands
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| 	"fmt"
 | |
| 	"os"
 | |
| 
 | |
| 	"github.com/mitchell/selfpass/credentials/types"
 | |
| )
 | |
| 
 | |
| type CredentialClientInit func(ctx context.Context) (c types.CredentialClient)
 | |
| 
 | |
| func check(err error) {
 | |
| 	if err != nil {
 | |
| 		fmt.Println(err)
 | |
| 		os.Exit(1)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| const KeyPrivateKey = "private_key"
 |