Skip to content

Commit

Permalink
CLI updated to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Jul 21, 2019
1 parent 728d086 commit a2e0be1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cli/Squidex.CLI/Squidex.CLI/Commands/App_Backup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public async Task Create(CreateArguments arguments)
{
while (!tcs.Token.IsCancellationRequested)
{
var backups = await backupsClient.GetJobsAsync(app);
var backup = backups.FirstOrDefault(x => x.Started >= backupStarted);
var backups = await backupsClient.GetBackupsAsync(app);
var backup = backups.Items.FirstOrDefault(x => x.Started >= backupStarted);

if (backup != null && backup.Stopped.HasValue)
{
Expand Down
10 changes: 6 additions & 4 deletions cli/Squidex.CLI/Squidex.CLI/Commands/App_Schemas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
using Squidex.ClientLibrary;
using Squidex.ClientLibrary.Management;

#pragma warning disable IDE0059 // Value assigned to symbol is never used

namespace Squidex.CLI.Commands
{
public partial class App
Expand All @@ -43,7 +45,7 @@ public async Task List(ListArguments arguments)
{
var table = new ConsoleTable("Id", "Name", "Published", "LastUpdate");

foreach (var schema in schemas)
foreach (var schema in schemas.Items)
{
table.AddRow(schema.Id, schema.Name, schema.IsPublished, schema.LastModified);
}
Expand All @@ -68,7 +70,7 @@ public async Task Get(GetArguments arguments)
{
var allSchemas = await schemasClient.GetSchemasAsync(app);

var result = new SchemaWithRefs<SchemaDetailsDto>(schema).EnrichSchemaNames(allSchemas);
var result = new SchemaWithRefs<SchemaDetailsDto>(schema).EnrichSchemaNames(allSchemas.Items);

Console.WriteLine(result.JsonPrettyString());
}
Expand Down Expand Up @@ -134,7 +136,7 @@ public async Task Sync(SyncArguments arguments)
{
var allSchemas = await schemasClient.GetSchemasAsync(app);

request.AdjustReferences(allSchemas);
request.AdjustReferences(allSchemas.Items);
}

request.Schema.Name = schemaName;
Expand All @@ -151,7 +153,7 @@ public async Task Sync(SyncArguments arguments)
{
var allSchemas = await schemasClient.GetSchemasAsync(app);

request.AdjustReferences(allSchemas);
request.AdjustReferences(allSchemas.Items);
}

request.Schema.NoFieldDeletion = arguments.NoFieldDeletion;
Expand Down
2 changes: 1 addition & 1 deletion cli/Squidex.CLI/Squidex.CLI/Squidex.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageReference Include="CoreTweet" Version="1.0.0.483" />
<PackageReference Include="CsvHelper" Version="12.1.2" />
<PackageReference Include="RefactoringEssentials" Version="5.6.0" PrivateAssets="all" />
<PackageReference Include="Squidex.ClientLibrary" Version="2.8.0" />
<PackageReference Include="Squidex.ClientLibrary" Version="3.0.0" />
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="all" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageIconUrl>https://raw.githubusercontent.com/Squidex/squidex/master/media/logo-squared.png</PackageIconUrl>
<PackageLicense>https://github.com/Squidex/squidex/blob/master/LICENSE.txt</PackageLicense>
<PackageProjectUrl>https://github.com/Squidex/squidex/</PackageProjectUrl>
<Version>3.0-beta1</Version>
<Version>3.0</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

Expand Down

0 comments on commit a2e0be1

Please sign in to comment.