Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
Updated copyright, typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Ermishkin committed Jan 2, 2019
1 parent c67ffac commit 1192b67
Show file tree
Hide file tree
Showing 24 changed files with 41 additions and 46 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ To get an update token:
```

where:
- <app_access_token> - is your application token.
- <app_token> - is your application token.

as a result, you get your `update_token`.

Expand Down
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
9 changes: 4 additions & 5 deletions cmd/account.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down Expand Up @@ -44,10 +44,9 @@ import (

func Account(client *client.VirgilHttpClient) *cli.Command {
return &cli.Command{
Name: "account",
Aliases: []string{"acc"},
ArgsUsage: "acc",
Usage: "Manage your account",
Name: "account",
Aliases: []string{"acc"},
Usage: "Manage your account",
Subcommands: []*cli.Command{
account.Register(client),
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/account/register.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
9 changes: 4 additions & 5 deletions cmd/app.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down Expand Up @@ -44,10 +44,9 @@ import (

func Application(client *client.VirgilHttpClient) *cli.Command {
return &cli.Command{
Name: "application",
Aliases: []string{"app"},
ArgsUsage: "app",
Usage: "Manage your applications",
Name: "application",
Aliases: []string{"app"},
Usage: "Manage your applications",
Subcommands: []*cli.Command{
app.Create(client),
app.Rotate(client),
Expand Down
2 changes: 1 addition & 1 deletion cmd/app/create.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
4 changes: 2 additions & 2 deletions cmd/app/deletetoken.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down Expand Up @@ -50,7 +50,7 @@ func DeleteUpdateToken(vcli *client.VirgilHttpClient) *cli.Command {
return &cli.Command{
Name: "delete-update-token",
Aliases: []string{"dt"},
ArgsUsage: "dt <app_access_token>",
ArgsUsage: "app_token",
Usage: "Deletes the latest update token available for this app",
Action: func(context *cli.Context) (err error) {

Expand Down
2 changes: 1 addition & 1 deletion cmd/app/fetchtoken.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
2 changes: 1 addition & 1 deletion cmd/app/list.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
4 changes: 2 additions & 2 deletions cmd/app/rotate.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down Expand Up @@ -52,7 +52,7 @@ func Rotate(client *client.VirgilHttpClient) *cli.Command {
return &cli.Command{
Name: "rotate",
Aliases: []string{"r"},
ArgsUsage: "rotate <app_token>",
ArgsUsage: "app_token",
Usage: "rotate secret on server and issue an update token",
Action: func(context *cli.Context) error {
return RotateFunc(context, client)
Expand Down
2 changes: 1 addition & 1 deletion cmd/app/updatekeys.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
9 changes: 4 additions & 5 deletions cmd/demo.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down Expand Up @@ -43,10 +43,9 @@ import (

func Demo() *cli.Command {
return &cli.Command{
Name: "demo",
Aliases: []string{"d"},
ArgsUsage: "demo",
Usage: "Try passw0rd in action",
Name: "demo",
Aliases: []string{"d"},
Usage: "Try passw0rd in action",
Subcommands: []*cli.Command{
demo.Enroll(),
demo.Verify(),
Expand Down
2 changes: 1 addition & 1 deletion cmd/demo/enroll.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
2 changes: 1 addition & 1 deletion cmd/demo/update.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
2 changes: 1 addition & 1 deletion cmd/demo/utils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
2 changes: 1 addition & 1 deletion cmd/demo/verify.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
9 changes: 4 additions & 5 deletions cmd/keygen.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down Expand Up @@ -46,10 +46,9 @@ import (

func Keygen() *cli.Command {
return &cli.Command{
Name: "keygen",
Aliases: []string{"kg"},
ArgsUsage: "kg",
Usage: "Generate a new passw0rd.io app secret key",
Name: "keygen",
Aliases: []string{"kg"},
Usage: "Generate a new passw0rd.io app secret key",
Action: func(context *cli.Context) error {
key := phe.GenerateClientKey()
fmt.Println("SK.1." + base64.StdEncoding.EncodeToString(key))
Expand Down
4 changes: 2 additions & 2 deletions cmd/login.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down Expand Up @@ -48,7 +48,7 @@ import (
func Login(client *client.VirgilHttpClient) *cli.Command {
return &cli.Command{
Name: "login",
ArgsUsage: "login <email>",
ArgsUsage: "[email]",
Usage: "Obtain temporary account access token",
Action: func(context *cli.Context) error {

Expand Down
7 changes: 3 additions & 4 deletions cmd/logout.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down Expand Up @@ -50,9 +50,8 @@ import (

func Logout(vcli *client.VirgilHttpClient) *cli.Command {
return &cli.Command{
Name: "logout",
ArgsUsage: "logout",
Usage: "Unregister account access token",
Name: "logout",
Usage: "Unregister account access token",
Action: func(context *cli.Context) error {

token, err := utils.LoadAccessToken()
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
2 changes: 1 addition & 1 deletion models/error.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
2 changes: 1 addition & 1 deletion utils/errcheck.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
2 changes: 1 addition & 1 deletion utils/login.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down
2 changes: 1 addition & 1 deletion utils/token.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018 Virgil Security Inc.
* Copyright (C) 2015-2019 Virgil Security Inc.
*
* All rights reserved.
*
Expand Down

0 comments on commit 1192b67

Please sign in to comment.