snapctl 0.38.1__py3-none-any.whl → 0.38.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of snapctl might be problematic. Click here for more details.

@@ -2,7 +2,7 @@
2
2
  Constants used by snapctl
3
3
  """
4
4
  COMPANY_NAME = 'Snapser'
5
- VERSION = '0.38.1'
5
+ VERSION = '0.38.2'
6
6
  CONFIG_FILE_MAC = '~/.snapser/config'
7
7
  CONFIG_FILE_WIN = '%homepath%\\.snapser\\config'
8
8
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snapctl
3
- Version: 0.38.1
3
+ Version: 0.38.2
4
4
  Summary: Snapser CLI Tool
5
5
  Author: Ajinkya Apte
6
6
  Author-email: aj@snapser.com
@@ -17,7 +17,10 @@ Requires-Dist: requests (>=2.28.2,<3.0.0)
17
17
  Requires-Dist: typer[all] (>=0.12.3,<0.13.0)
18
18
  Description-Content-Type: text/markdown
19
19
 
20
- # Snapser CLI Tool
20
+ # Snapser CLI
21
+
22
+ Snapser has developed a CLI tool called **snapctl** that can be used on MaxOSX, Linux and Windows machines.
23
+ Snapctl will be the best way for game studios to integrate Snapser into their build pipelines.
21
24
 
22
25
  ## Dependencies
23
26
 
@@ -53,12 +56,10 @@ If you also have Python 2.X on your machine, you may have to run the following c
53
56
  pip3 install --user snapctl
54
57
  ```
55
58
 
56
- <Note>
57
- After you install snapctl you may have to add the python bin folder to your
58
- path. For example, on MacOSX this is usually **~/Library/Python/3.9/bin**. On
59
- Windows this is usually
60
- **C:\Users\username\AppData\Roaming\Python\Python39\Scripts**.
61
- </Note>
59
+ **IMPORTANT**: After you install snapctl you may have to add the python bin folder to your
60
+ path. For example, on MacOSX this is usually **~/Library/Python/3.9/bin**. On
61
+ Windows this is usually
62
+ **C:\Users\username\AppData\Roaming\Python\Python39\Scripts**.
62
63
 
63
64
  ## Upgrade
64
65
 
@@ -77,10 +78,8 @@ In the left navigation click on **Developer** which will bring up your Personal
77
78
  If you have not generated an API Key yet click on the **Generate** button to generate a new key.
78
79
  You can generate up to 3 API Keys per user account.
79
80
 
80
- <Note>
81
- Please make sure you save your API key in a safe place. You will not be able
82
- to see it again.
83
- </Note>
81
+ **IMPORTANT**: Please make sure you save your API key in a safe place. You will not be able
82
+ to see it again.
84
83
 
85
84
  ### Setup a local config
86
85
 
@@ -288,6 +287,9 @@ snapctl byosnap publish-image $byosnap_sid --tag $image_tag --skip-build
288
287
  Publish a new version for your Snap. Only after your Snap version is published, you will be able
289
288
  to use your snap in your Snapend. This command should be run after `push` or `publish-image` commands.
290
289
 
290
+ IMPORTANT: You need to have $byosnapProfile to run this command. BYOSnap profile is a JSON configuration
291
+ of your BYOSnap for the development, staging and production environments.
292
+
291
293
  ```
292
294
  # Help for the byosnap command
293
295
  snapctl byosnap publish-version --help
@@ -619,3 +621,93 @@ snapctl snapend state $snapend_id
619
621
  | 81 | Generate profile error |
620
622
  | 82 | Generate credentials error |
621
623
 
624
+
625
+
626
+ ## CLI Return Codes
627
+
628
+ | Error Code | Description |
629
+ |------------|----------------------------------------------------------|
630
+ | 0 | Operation completed successfully |
631
+ | 1 | General error |
632
+ | 2 | Input error |
633
+
634
+ ### Configuration Errors
635
+
636
+ | Error Code | Description |
637
+ |------------|----------------------------------------------------------|
638
+ | 10 | Configuration incorrect |
639
+ | 11 | Configuration error |
640
+ | 12 | Dependency missing |
641
+
642
+ ### BYOGS Errors
643
+
644
+ | Error Code | Description |
645
+ |------------|----------------------------------------------------------|
646
+ | 20 | Generic BYOGS error |
647
+ | 21 | BYOGS dependency missing |
648
+ | 22 | BYOGS ECR login error |
649
+ | 23 | BYOGS build error |
650
+ | 24 | BYOGS tag error |
651
+ | 25 | BYOGS publish error |
652
+ | 26 | BYOGS publish permission error |
653
+ | 27 | BYOGS publish duplicate tag error |
654
+
655
+ ### BYOSNAP Errors
656
+
657
+ | Error Code | Description |
658
+ |------------|----------------------------------------------------------|
659
+ | 30 | Generic BYOSNAP error |
660
+ | 31 | BYOSNAP dependency missing |
661
+ | 32 | BYOSNAP ECR login error |
662
+ | 33 | BYOSNAP build error |
663
+ | 34 | BYOSNAP tag error |
664
+ | 35 | BYOSNAP publish image error |
665
+ | 36 | BYOSNAP publish image permission error |
666
+ | 37 | BYOSNAP publish image duplicate tag error |
667
+ | 38 | BYOSNAP create error |
668
+ | 39 | BYOSNAP create permission error |
669
+ | 40 | BYOSNAP create duplicate name error |
670
+ | 41 | BYOSNAP publish version error |
671
+ | 42 | BYOSNAP publish version permission error |
672
+ | 43 | BYOSNAP publish version duplicate version error |
673
+ | 44 | BYOSNAP publish version duplicate tag error |
674
+
675
+ ### Game Errors
676
+
677
+ | Error Code | Description |
678
+ |------------|----------------------------------------------------------|
679
+ | 50 | Generic game error |
680
+ | 51 | Game create error |
681
+ | 52 | Game create permission error |
682
+ | 53 | Game create duplicate name error |
683
+ | 54 | Game enumerate error |
684
+
685
+ ### Snapend Errors
686
+
687
+ | Error Code | Description |
688
+ |------------|----------------------------------------------------------|
689
+ | 60 | Generic snapend error |
690
+ | 61 | Snapend enumerate error |
691
+ | 62 | Snapend clone error |
692
+ | 63 | Snapend clone server error |
693
+ | 64 | Snapend clone timeout error |
694
+ | 65 | Snapend apply error |
695
+ | 66 | Snapend apply server error |
696
+ | 67 | Snapend apply timeout error |
697
+ | 68 | Snapend promote error |
698
+ | 69 | Snapend promote server error |
699
+ | 70 | Snapend promote timeout error |
700
+ | 71 | Snapend download error |
701
+ | 72 | Snapend update error |
702
+ | 73 | Snapend update server error |
703
+ | 74 | Snapend update timeout error |
704
+ | 75 | Snapend state error |
705
+
706
+ ### Generate Errors
707
+
708
+ | Error Code | Description |
709
+ |------------|----------------------------------------------------------|
710
+ | 80 | Generic generate error |
711
+ | 81 | Generate profile error |
712
+ | 82 | Generate credentials error |
713
+
@@ -7,7 +7,7 @@ snapctl/commands/game.py,sha256=icAPD8derxtgXHZQvziHd1O8fwD5Kw7HFMA8yXOUSRQ,4344
7
7
  snapctl/commands/generate.py,sha256=7z4nyqDuAieFmIg-XVIri2xkXPpDJd0E3uKYIfQtBqE,7891
8
8
  snapctl/commands/snapend.py,sha256=wEeA9v0SCs0G2093wMIKVTQhPLCfx8i5Ladk9kMlSCM,30729
9
9
  snapctl/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- snapctl/config/constants.py,sha256=s26pXoQWuafLkvtFtOv5sBHrAsZjVO3MUsG3AA3JqGQ,2735
10
+ snapctl/config/constants.py,sha256=aWcnMMYkcqcdzwMO0xFxWNMb8vgDcq67RljeEBG2skc,2735
11
11
  snapctl/config/endpoints.py,sha256=VAeOmx3k3ukB-9XuGI65KtCJwFK-KFgzor-UWE8JU0g,297
12
12
  snapctl/config/hashes.py,sha256=7jkMYfMAcgdque5PN10-B3QqwoXvtsuJKJr9dKZUvJ8,4139
13
13
  snapctl/main.py,sha256=aaFB0insVsIKDp25Hc0J0t5JtIQJXxDgHbBwKaHVbBc,19619
@@ -16,8 +16,8 @@ snapctl/types/definitions.py,sha256=EQzLeiXkJ8ISRlCqHMviNVsWWpmhWjpKaOBLdlvOTmY,
16
16
  snapctl/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  snapctl/utils/echo.py,sha256=V0qgjqqGXRiueMkq31enmNmdqciC8S90qGRcK8UupXA,1090
18
18
  snapctl/utils/helper.py,sha256=XSn0x46mED86kQU1UlmuvJY9GsXO3Ncoba18Lb6FE8k,5522
19
- snapctl-0.38.1.dist-info/LICENSE,sha256=6AcXm54KFSpmUI1ji9NIBd4Xl-DtjTqiyjBzfVb_CEk,2804
20
- snapctl-0.38.1.dist-info/METADATA,sha256=HGOdEApmi0QmDIvWhSDUIO072EdxaOsGWzMO2eeoLJQ,21465
21
- snapctl-0.38.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
22
- snapctl-0.38.1.dist-info/entry_points.txt,sha256=tkKW9MzmFdRs6Bgkv29G78i9WEBK4WIOWunPfe3t2Wg,44
23
- snapctl-0.38.1.dist-info/RECORD,,
19
+ snapctl-0.38.2.dist-info/LICENSE,sha256=6AcXm54KFSpmUI1ji9NIBd4Xl-DtjTqiyjBzfVb_CEk,2804
20
+ snapctl-0.38.2.dist-info/METADATA,sha256=uVc7pb2IG5tqnxCrgo5CjpPdl7whZSCLAKxVJAKkFc0,26942
21
+ snapctl-0.38.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
22
+ snapctl-0.38.2.dist-info/entry_points.txt,sha256=tkKW9MzmFdRs6Bgkv29G78i9WEBK4WIOWunPfe3t2Wg,44
23
+ snapctl-0.38.2.dist-info/RECORD,,